From 9960e3260d87852dace0247f023baea5f0a270ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Mon, 9 Sep 2024 14:13:59 +0200 Subject: [PATCH] Fix license headers in plugins --- scm-plugins/scm-git-plugin/build.gradle | 668 +----------------- .../jgit/transport/ScmTransportProtocol.java | 668 +----------------- .../http/WrappedHttpUrlConnection.java | 668 +----------------- .../scm/api/v2/resources/GitConfigDto.java | 668 +----------------- .../GitConfigDtoToGitConfigMapper.java | 668 +----------------- .../resources/GitConfigInIndexResource.java | 668 +----------------- .../api/v2/resources/GitConfigResource.java | 668 +----------------- .../GitConfigToGitConfigDtoMapper.java | 668 +----------------- ...figChangeClearRepositoryCacheListener.java | 668 +----------------- .../GitRepositoryConfigChangedEvent.java | 668 +----------------- .../v2/resources/GitRepositoryConfigDto.java | 668 +----------------- .../GitRepositoryConfigEnricher.java | 668 +----------------- .../resources/GitRepositoryConfigMapper.java | 668 +----------------- .../GitRepositoryConfigResource.java | 668 +----------------- .../GitRepositoryConfigStoreProvider.java | 668 +----------------- .../v2/resources/RepositoryLinkEnricher.java | 668 +----------------- .../api/v2/resources/UpdateGitConfigDto.java | 668 +----------------- .../UpdateGitRepositoryConfigDto.java | 668 +----------------- .../git/BaseReceivePackFactory.java | 668 +----------------- .../git/GitCommandInterpreter.java | 668 +----------------- .../git/GitCommandInterpreterFactory.java | 668 +----------------- .../protocolcommand/git/GitCommandParser.java | 668 +----------------- .../git/GitCommandProtocol.java | 668 +----------------- .../git/GitRepositoryContextResolver.java | 668 +----------------- .../git/ScmReceivePackFactory.java | 668 +----------------- .../git/ScmUploadPackFactory.java | 668 +----------------- .../DefaultBranchChangedDispatcher.java | 668 +----------------- .../scm/repository/GPGSignatureResolver.java | 668 +----------------- .../scm/repository/GitChangesetConverter.java | 668 +----------------- .../GitChangesetConverterFactory.java | 668 +----------------- .../java/sonia/scm/repository/GitConfig.java | 668 +----------------- .../sonia/scm/repository/GitConfigHelper.java | 668 +----------------- .../java/sonia/scm/repository/GitGcTask.java | 668 +----------------- .../sonia/scm/repository/GitHeadModifier.java | 668 +----------------- .../sonia/scm/repository/GitHealthCheck.java | 668 +----------------- .../GitHttpTransportRegistration.java | 668 +----------------- .../scm/repository/GitImportHandler.java | 668 +----------------- .../scm/repository/GitRepositoryConfig.java | 668 +----------------- .../GitRepositoryConfigInitializer.java | 668 +----------------- .../scm/repository/GitRepositoryHandler.java | 668 +----------------- .../GitRepositoryModifyListener.java | 668 +----------------- .../repository/GitRepositoryPathMatcher.java | 668 +----------------- .../scm/repository/GitSubModuleParser.java | 668 +----------------- .../java/sonia/scm/repository/GitUtil.java | 668 +----------------- .../GitWorkQueueShutdownListener.java | 668 +----------------- .../scm/repository/GitWorkingCopyFactory.java | 668 +----------------- .../sonia/scm/repository/ScmGpgSigner.java | 668 +----------------- .../repository/ScmGpgSignerInitializer.java | 668 +----------------- .../repository/api/GitHookBranchProvider.java | 668 +----------------- .../api/GitHookMessageProvider.java | 668 +----------------- .../api/GitHookModificationsProvider.java | 668 +----------------- .../repository/api/GitHookTagProvider.java | 668 +----------------- .../GitReceiveHookMergeDetectionProvider.java | 668 +----------------- .../repository/spi/AbstractGitCommand.java | 668 +----------------- .../AbstractGitIncomingOutgoingCommand.java | 668 +----------------- .../spi/AbstractGitPushOrPullCommand.java | 668 +----------------- .../scm/repository/spi/AttributeAnalyzer.java | 668 +----------------- .../spi/BranchBasedModificationsComputer.java | 668 +----------------- .../java/sonia/scm/repository/spi/Differ.java | 668 +----------------- .../repository/spi/FileLockPreCommitHook.java | 668 +----------------- .../sonia/scm/repository/spi/FileRange.java | 668 +----------------- .../scm/repository/spi/GitBlameCommand.java | 668 +----------------- .../scm/repository/spi/GitBranchCommand.java | 668 +----------------- .../spi/GitBranchDetailsCommand.java | 668 +----------------- .../repository/spi/GitBranchesCommand.java | 668 +----------------- .../scm/repository/spi/GitBrowseCommand.java | 668 +----------------- .../scm/repository/spi/GitBundleCommand.java | 668 +----------------- .../scm/repository/spi/GitCatCommand.java | 668 +----------------- .../repository/spi/GitChangesetsCommand.java | 668 +----------------- .../spi/GitConfigContextListener.java | 668 +----------------- .../sonia/scm/repository/spi/GitContext.java | 668 +----------------- .../scm/repository/spi/GitContextFactory.java | 668 +----------------- .../spi/GitConvertingChangesetIterable.java | 668 +----------------- .../scm/repository/spi/GitDiffCommand.java | 668 +----------------- .../scm/repository/spi/GitDiffResult.java | 668 +----------------- .../repository/spi/GitDiffResultCommand.java | 668 +----------------- .../spi/GitFastForwardIfPossible.java | 668 +----------------- .../repository/spi/GitFileLockCommand.java | 668 +----------------- .../spi/GitFileLockStoreFactory.java | 668 +----------------- .../spi/GitHookChangesetCollector.java | 668 +----------------- .../spi/GitHookChangesetProvider.java | 668 +----------------- .../spi/GitHookContextProvider.java | 668 +----------------- .../sonia/scm/repository/spi/GitHunk.java | 668 +----------------- .../scm/repository/spi/GitHunkParser.java | 668 +----------------- .../spi/GitImportHookContextProvider.java | 668 +----------------- .../repository/spi/GitIncomingCommand.java | 668 +----------------- .../spi/GitLazyChangesetResolver.java | 668 +----------------- .../spi/GitLfsFilterContextListener.java | 668 +----------------- .../scm/repository/spi/GitLogCommand.java | 668 +----------------- .../scm/repository/spi/GitLogComputer.java | 668 +----------------- .../scm/repository/spi/GitMergeCommand.java | 668 +----------------- .../scm/repository/spi/GitMergeCommit.java | 668 +----------------- .../scm/repository/spi/GitMergeRebase.java | 668 +----------------- .../scm/repository/spi/GitMergeStrategy.java | 668 +----------------- .../repository/spi/GitMergeWithSquash.java | 668 +----------------- .../scm/repository/spi/GitMirrorCommand.java | 668 +----------------- .../spi/GitModificationsCommand.java | 668 +----------------- .../scm/repository/spi/GitModifyCommand.java | 668 +----------------- .../repository/spi/GitOutgoingCommand.java | 668 +----------------- .../scm/repository/spi/GitPullCommand.java | 668 +----------------- .../scm/repository/spi/GitPushCommand.java | 668 +----------------- .../spi/GitRepositoryHookEventFactory.java | 668 +----------------- .../spi/GitRepositoryServiceProvider.java | 668 +----------------- .../spi/GitRepositoryServiceResolver.java | 668 +----------------- .../repository/spi/GitRevisionExtractor.java | 668 +----------------- .../scm/repository/spi/GitTagCommand.java | 668 +----------------- .../scm/repository/spi/GitTagConverter.java | 668 +----------------- .../scm/repository/spi/GitTagsCommand.java | 668 +----------------- .../repository/spi/GitUnbundleCommand.java | 668 +----------------- .../spi/GitWorkingCopyInitializer.java | 668 +----------------- .../spi/GitWorkingCopyReclaimer.java | 668 +----------------- .../spi/LfsBlobStoreCleanFilter.java | 668 +----------------- .../spi/LfsBlobStoreCleanFilterFactory.java | 668 +----------------- .../sonia/scm/repository/spi/LfsLoader.java | 668 +----------------- .../spi/MirrorHttpConnectionProvider.java | 668 +----------------- .../repository/spi/ModificationsComputer.java | 668 +----------------- ...PostReceiveRepositoryHookEventFactory.java | 668 +----------------- .../spi/PullHttpConnectionProvider.java | 668 +----------------- .../spi/SimpleGitWorkingCopyFactory.java | 668 +----------------- .../spi/UnexpectedMergeResultException.java | 668 +----------------- .../repository/update/GitV2UpdateStep.java | 668 +----------------- .../scm/web/CollectingPackParserListener.java | 668 +----------------- .../sonia/scm/web/GitContextListener.java | 668 +----------------- .../main/java/sonia/scm/web/GitFileHook.java | 668 +----------------- .../src/main/java/sonia/scm/web/GitHooks.java | 668 +----------------- .../sonia/scm/web/GitLfsLockApiDetector.java | 668 +----------------- .../scm/web/GitLfsObjectApiDetector.java | 668 +----------------- .../sonia/scm/web/GitPermissionFilter.java | 668 +----------------- .../scm/web/GitPermissionFilterFactory.java | 668 +----------------- .../java/sonia/scm/web/GitReceiveHook.java | 668 +----------------- .../sonia/scm/web/GitReceivePackFactory.java | 668 +----------------- .../sonia/scm/web/GitRepositoryResolver.java | 668 +----------------- .../sonia/scm/web/GitRepositoryViewer.java | 668 +----------------- .../web/GitScmProtocolProviderWrapper.java | 668 +----------------- .../java/sonia/scm/web/GitServletModule.java | 668 +----------------- .../sonia/scm/web/GitUserAgentProvider.java | 668 +----------------- .../java/sonia/scm/web/GitVndMediaType.java | 668 +----------------- .../scm/web/LfsLockingProtocolServlet.java | 668 +----------------- .../java/sonia/scm/web/ScmGitServlet.java | 668 +----------------- .../sonia/scm/web/ScmGitServletProvider.java | 668 +----------------- .../scm/web/ScmHttpConnectionFactory.java | 668 +----------------- .../sonia/scm/web/lfs/ExpiringAction.java | 668 +----------------- .../sonia/scm/web/lfs/LFSAuthCommand.java | 668 +----------------- .../scm/web/lfs/LfsAccessTokenFactory.java | 668 +----------------- .../scm/web/lfs/LfsBlobStoreFactory.java | 668 +----------------- .../sonia/scm/web/lfs/LfsV1UpdateStep.java | 668 +----------------- ...veRepositoryIdFromBlobStoreUpdateStep.java | 668 +----------------- .../scm/web/lfs/ScmBlobLfsRepository.java | 668 +----------------- .../web/lfs/servlet/LfsServletFactory.java | 668 +----------------- .../lfs/servlet/ScmFileTransferServlet.java | 668 +----------------- .../lfs/servlet/ScmLfsProtocolServlet.java | 668 +----------------- .../src/main/js/CloneInformation.tsx | 668 +----------------- .../scm-git-plugin/src/main/js/GitAvatar.tsx | 668 +----------------- .../src/main/js/GitBranchInformation.tsx | 668 +----------------- .../src/main/js/GitGlobalConfiguration.tsx | 668 +----------------- .../src/main/js/GitMergeInformation.tsx | 668 +----------------- .../src/main/js/GitTagInformation.tsx | 668 +----------------- .../src/main/js/ProtocolInformation.tsx | 668 +----------------- .../src/main/js/RepositoryConfig.tsx | 668 +----------------- .../scm-git-plugin/src/main/js/index.test.ts | 668 +----------------- .../scm-git-plugin/src/main/js/index.ts | 668 +----------------- .../resources/META-INF/scm/permissions.xml | 668 +----------------- .../META-INF/scm/repository-permissions.xml | 668 +----------------- .../GitConfigDtoToGitConfigMapperTest.java | 668 +----------------- .../GitConfigInIndexResourceTest.java | 668 +----------------- .../v2/resources/GitConfigResourceTest.java | 668 +----------------- .../GitConfigToGitConfigDtoMapperTest.java | 668 +----------------- .../GitRepositoryConfigEnricherTest.java | 668 +----------------- .../resources/RepositoryLinkEnricherTest.java | 668 +----------------- .../git/BaseReceivePackFactoryTest.java | 668 +----------------- .../git/GitRepositoryContextResolverTest.java | 668 +----------------- .../DefaultBranchChangedDispatcherTest.java | 668 +----------------- .../repository/GPGSignatureResolverTest.java | 668 +----------------- .../repository/GitChangesetConverterTest.java | 668 +----------------- .../sonia/scm/repository/GitGcTaskTest.java | 668 +----------------- .../scm/repository/GitHeadModifierTest.java | 668 +----------------- .../GitHttpTransportRegistrationTest.java | 668 +----------------- .../GitRepositoryConfigInitializerTest.java | 668 +----------------- .../repository/GitRepositoryHandlerTest.java | 668 +----------------- .../GitRepositoryPathMatcherTest.java | 668 +----------------- .../repository/GitSubModuleParserTest.java | 668 +----------------- .../sonia/scm/repository/GitTestHelper.java | 668 +----------------- .../sonia/scm/repository/GitUtilTest.java | 668 +----------------- .../scm/repository/ScmGpgSignerTest.java | 668 +----------------- .../api/GitHookBranchProviderTest.java | 668 +----------------- .../api/GitHookModificationsProviderTest.java | 668 +----------------- .../api/GitHookTagProviderTest.java | 668 +----------------- .../repository/client/spi/GitAddCommand.java | 668 +----------------- .../client/spi/GitBranchCommand.java | 668 +----------------- .../client/spi/GitCheckoutCommand.java | 668 +----------------- .../client/spi/GitCommitCommand.java | 668 +----------------- .../spi/GitDeleteRemoteBranchCommand.java | 668 +----------------- .../client/spi/GitMergeCommand.java | 668 +----------------- .../repository/client/spi/GitPushCommand.java | 668 +----------------- .../client/spi/GitRemoveCommand.java | 668 +----------------- .../GitRepositoryClientFactoryProvider.java | 668 +----------------- .../spi/GitRepositoryClientProvider.java | 668 +----------------- .../repository/client/spi/GitTagCommand.java | 668 +----------------- .../spi/AbstractGitCommandTest.java | 668 +----------------- .../spi/AbstractGitCommandTestBase.java | 668 +----------------- .../spi/AbstractRemoteCommandTestBase.java | 668 +----------------- .../repository/spi/AttributeAnalyzerTest.java | 668 +----------------- .../spi/BindTransportProtocolRule.java | 668 +----------------- .../spi/FileLockPreCommitHookTest.java | 668 +----------------- .../repository/spi/GitBlameCommandTest.java | 668 +----------------- .../repository/spi/GitBranchCommandTest.java | 668 +----------------- .../spi/GitBranchDetailsCommandTest.java | 668 +----------------- .../spi/GitBranchesCommandTest.java | 668 +----------------- .../repository/spi/GitBrowseCommandTest.java | 668 +----------------- .../GitBrowseCommand_BrokenSubmoduleTest.java | 668 +----------------- ...wseCommand_RecursiveDirectoryNameTest.java | 668 +----------------- .../repository/spi/GitBundleCommandTest.java | 668 +----------------- .../scm/repository/spi/GitCatCommandTest.java | 668 +----------------- .../spi/GitChangesetsCommandTest.java | 668 +----------------- .../spi/GitConfigContextListenerTest.java | 668 +----------------- .../repository/spi/GitDiffCommandTest.java | 668 +----------------- .../spi/GitDiffCommandWithTagsTest.java | 668 +----------------- ...itDiffCommand_DequoteOutputStreamTest.java | 668 +----------------- .../spi/GitDiffResultCommandTest.java | 668 +----------------- .../spi/GitFileLockCommandTest.java | 668 +----------------- .../spi/GitFileLockStoreFactoryTest.java | 668 +----------------- .../spi/GitHookChangesetCollectorTest.java | 668 +----------------- .../scm/repository/spi/GitHunkParserTest.java | 668 +----------------- .../spi/GitIncomingCommandTest.java | 668 +----------------- .../spi/GitLazyChangesetResolverTest.java | 668 +----------------- .../spi/GitLogCommandAncestorTest.java | 668 +----------------- .../scm/repository/spi/GitLogCommandTest.java | 668 +----------------- .../spi/GitMergeCommandConflictTest.java | 668 +----------------- .../repository/spi/GitMergeCommandTest.java | 668 +----------------- .../repository/spi/GitMirrorCommandTest.java | 668 +----------------- .../spi/GitModificationsCommandTest.java | 668 +----------------- .../repository/spi/GitModifyCommandTest.java | 668 +----------------- .../spi/GitModifyCommandTestBase.java | 668 +----------------- .../spi/GitModifyCommand_LFSTest.java | 668 +----------------- ...ModifyCommand_withEmptyRepositoryTest.java | 668 +----------------- .../spi/GitOutgoingCommandTest.java | 668 +----------------- ...ReceiveRepositoryHookEventFactoryTest.java | 668 +----------------- .../repository/spi/GitPushCommandTest.java | 668 +----------------- ...RepositoryConfigStoreProviderTestUtil.java | 668 +----------------- .../spi/GitRepositoryServiceProviderTest.java | 668 +----------------- .../spi/GitRepositoryServiceResolverTest.java | 668 +----------------- .../spi/GitRevisionExtractorTest.java | 668 +----------------- .../scm/repository/spi/GitTagCommandTest.java | 668 +----------------- .../repository/spi/GitTagsCommandTest.java | 668 +----------------- .../spi/GitUnbundleCommandTest.java | 668 +----------------- .../scm/repository/spi/LfsLoaderTest.java | 668 +----------------- .../spi/MirrorHttpConnectionProviderTest.java | 668 +----------------- .../spi/SimpleGitWorkingCopyFactoryTest.java | 668 +----------------- .../update/GitV2UpdateStepTest.java | 668 +----------------- .../scm/web/CapturingServletOutputStream.java | 668 +----------------- .../scm/web/GitLfsLockApiDetectorTest.java | 668 +----------------- .../scm/web/GitLfsObjectApiDetectorTest.java | 668 +----------------- .../scm/web/GitPermissionFilterTest.java | 668 +----------------- .../scm/web/GitUserAgentProviderTest.java | 668 +----------------- .../web/LfsLockingProtocolServletTest.java | 668 +----------------- .../java/sonia/scm/web/ScmGitServletTest.java | 668 +----------------- .../scm/web/ScmHttpConnectionFactoryTest.java | 668 +----------------- .../sonia/scm/web/lfs/LFSAuthCommandTest.java | 668 +----------------- .../web/lfs/LfsAccessTokenFactoryTest.java | 668 +----------------- .../scm/web/lfs/LfsBlobStoreFactoryTest.java | 668 +----------------- ...positoryIdFromBlobStoreUpdateStepTest.java | 668 +----------------- .../scm/web/lfs/ScmBlobLfsRepositoryTest.java | 668 +----------------- .../lfs/servlet/LfsServletFactoryTest.java | 668 +----------------- .../servlet/ScmFileTransferServletTest.java | 668 +----------------- scm-plugins/scm-hg-plugin/build.gradle | 668 +----------------- .../sonia/scm/api/v2/resources/Encoding.java | 668 +----------------- .../api/v2/resources/EncodingValidator.java | 668 +----------------- .../scm/api/v2/resources/HgConfigLinks.java | 668 +----------------- .../api/v2/resources/HgConfigResource.java | 668 +----------------- ...GlobalConfigAutoConfigurationResource.java | 668 +----------------- .../HgGlobalConfigDtoToHgConfigMapper.java | 668 +----------------- .../HgGlobalConfigInIndexResource.java | 668 +----------------- ...GlobalConfigToHgGlobalConfigDtoMapper.java | 668 +----------------- .../v2/resources/HgGlobalGlobalConfigDto.java | 668 +----------------- .../v2/resources/HgRepositoryConfigDto.java | 668 +----------------- .../resources/HgRepositoryConfigEnricher.java | 668 +----------------- .../resources/HgRepositoryConfigMapper.java | 668 +----------------- .../resources/HgRepositoryConfigResource.java | 668 +----------------- .../v2/resources/UpdateHgGlobalConfigDto.java | 668 +----------------- .../scm/autoconfig/AutoConfigModule.java | 668 +----------------- .../scm/autoconfig/AutoConfigurator.java | 668 +----------------- .../autoconfig/AutoConfiguratorProvider.java | 668 +----------------- .../scm/autoconfig/NoOpAutoConfigurator.java | 668 +----------------- .../scm/autoconfig/PosixAutoConfigurator.java | 668 +----------------- .../autoconfig/WindowsAutoConfigurator.java | 668 +----------------- .../sonia/scm/autoconfig/WindowsRegistry.java | 668 +----------------- .../src/main/java/sonia/scm/log/HgLogger.java | 668 +----------------- .../java/sonia/scm/log/HgLoggerFactory.java | 668 +----------------- .../sonia/scm/log/HgLoggerFactoryBinder.java | 668 +----------------- .../DefaultHgEnvironmentBuilder.java | 668 +----------------- .../java/sonia/scm/repository/HgConfig.java | 668 +----------------- .../scm/repository/HgConfigResolver.java | 668 +----------------- .../scm/repository/HgEnvironmentBuilder.java | 668 +----------------- .../sonia/scm/repository/HgExtensions.java | 668 +----------------- .../sonia/scm/repository/HgGlobalConfig.java | 668 +----------------- .../sonia/scm/repository/HgHealthCheck.java | 668 +----------------- .../sonia/scm/repository/HgImportHandler.java | 668 +----------------- .../scm/repository/HgRepositoryConfig.java | 668 +----------------- .../repository/HgRepositoryConfigStore.java | 668 +----------------- .../scm/repository/HgRepositoryFactory.java | 668 +----------------- .../scm/repository/HgRepositoryHandler.java | 668 +----------------- .../java/sonia/scm/repository/HgVerifier.java | 668 +----------------- .../repository/api/HgHookBranchProvider.java | 668 +----------------- .../scm/repository/api/HgHookMessage.java | 668 +----------------- .../repository/api/HgHookMessageProvider.java | 668 +----------------- .../scm/repository/api/HgHookTagProvider.java | 668 +----------------- .../repository/hooks/DefaultHookHandler.java | 668 +----------------- .../hooks/HookContextProviderFactory.java | 668 +----------------- .../scm/repository/hooks/HookEnvironment.java | 668 +----------------- .../scm/repository/hooks/HookHandler.java | 668 +----------------- .../repository/hooks/HookHandlerFactory.java | 668 +----------------- .../scm/repository/hooks/HookModule.java | 668 +----------------- .../scm/repository/hooks/HookServer.java | 668 +----------------- .../sonia/scm/repository/hooks/Sockets.java | 668 +----------------- .../scm/repository/spi/AbstractCommand.java | 668 +----------------- .../spi/AbstractHgPushOrPullCommand.java | 668 +----------------- .../spi/AbstractWorkingCopyCommand.java | 668 +----------------- .../scm/repository/spi/HgBlameCommand.java | 668 +----------------- .../scm/repository/spi/HgBranchCommand.java | 668 +----------------- .../spi/HgBranchDetailsCommand.java | 668 +----------------- .../scm/repository/spi/HgBranchesCommand.java | 668 +----------------- .../spi/HgBranchesTagsExtractor.java | 668 +----------------- .../scm/repository/spi/HgBrowseCommand.java | 668 +----------------- .../scm/repository/spi/HgBundleCommand.java | 668 +----------------- .../scm/repository/spi/HgCatCommand.java | 668 +----------------- .../repository/spi/HgChangesetsCommand.java | 668 +----------------- .../scm/repository/spi/HgCommandContext.java | 668 +----------------- .../spi/HgCommandContextFactory.java | 668 +----------------- .../scm/repository/spi/HgDiffCommand.java | 668 +----------------- .../spi/HgFullHealthCheckCommand.java | 668 +----------------- .../spi/HgHookChangesetProvider.java | 668 +----------------- .../repository/spi/HgHookContextProvider.java | 668 +----------------- .../spi/HgImportHookContextProvider.java | 668 +----------------- .../scm/repository/spi/HgIncomingCommand.java | 668 +----------------- .../spi/HgLazyChangesetResolver.java | 668 +----------------- .../scm/repository/spi/HgLogCommand.java | 668 +----------------- .../spi/HgModificationsCommand.java | 668 +----------------- .../scm/repository/spi/HgModifyCommand.java | 668 +----------------- .../scm/repository/spi/HgOutgoingCommand.java | 668 +----------------- .../scm/repository/spi/HgPullCommand.java | 668 +----------------- .../scm/repository/spi/HgPushCommand.java | 668 +----------------- .../spi/HgRepositoryHookEventFactory.java | 668 +----------------- .../spi/HgRepositoryServiceProvider.java | 668 +----------------- .../spi/HgRepositoryServiceResolver.java | 668 +----------------- .../scm/repository/spi/HgTagCommand.java | 668 +----------------- .../scm/repository/spi/HgTagsCommand.java | 668 +----------------- .../scm/repository/spi/HgUnbundleCommand.java | 668 +----------------- .../scm/repository/spi/HgVerifyCommand.java | 668 +----------------- .../scm/repository/spi/HgVersionCommand.java | 668 +----------------- .../repository/spi/HgWorkingCopyFactory.java | 668 +----------------- .../spi/SimpleHgWorkingCopyFactory.java | 668 +----------------- .../spi/TemporaryConfigFactory.java | 668 +----------------- .../scm/repository/spi/UserFormatter.java | 668 +----------------- .../spi/javahg/AbstractChangesetCommand.java | 668 +----------------- .../spi/javahg/HgDiffInternalCommand.java | 668 +----------------- .../spi/javahg/HgFileviewCommand.java | 668 +----------------- .../javahg/HgFileviewCommandResultReader.java | 668 +----------------- .../spi/javahg/HgFileviewExtension.java | 668 +----------------- .../javahg/HgIncomingChangesetCommand.java | 668 +----------------- .../HgIncomingOutgoingChangesetCommand.java | 668 +----------------- .../spi/javahg/HgLogChangesetCommand.java | 668 +----------------- .../spi/javahg/HgModificationParser.java | 668 +----------------- .../javahg/HgOutgoingChangesetCommand.java | 668 +----------------- .../repository/spi/javahg/StateCommand.java | 668 +----------------- .../sonia/scm/web/HgCGIExceptionHandler.java | 668 +----------------- .../main/java/sonia/scm/web/HgCGIServlet.java | 668 +----------------- .../sonia/scm/web/HgCGIServletProvider.java | 668 +----------------- .../sonia/scm/web/HgPermissionFilter.java | 668 +----------------- .../scm/web/HgPermissionFilterFactory.java | 668 +----------------- .../scm/web/HgScmProtocolProviderWrapper.java | 668 +----------------- .../sonia/scm/web/HgServletInputStream.java | 668 +----------------- .../java/sonia/scm/web/HgServletModule.java | 668 +----------------- .../java/sonia/scm/web/HgServletRequest.java | 668 +----------------- .../sonia/scm/web/HgUserAgentProvider.java | 668 +----------------- .../src/main/java/sonia/scm/web/HgUtil.java | 668 +----------------- .../java/sonia/scm/web/HgVndMediaType.java | 668 +----------------- .../main/java/sonia/scm/web/WireProtocol.java | 668 +----------------- .../scm-hg-plugin/src/main/js/HgAvatar.tsx | 668 +----------------- .../src/main/js/HgBranchInformation.tsx | 668 +----------------- .../src/main/js/HgConfigurationForm.tsx | 668 +----------------- .../src/main/js/HgGlobalConfiguration.tsx | 668 +----------------- .../main/js/HgRepositoryConfigurationForm.tsx | 668 +----------------- .../src/main/js/HgTagInformation.tsx | 668 +----------------- .../src/main/js/ProtocolInformation.tsx | 668 +----------------- .../scm-hg-plugin/src/main/js/hooks.ts | 668 +----------------- .../scm-hg-plugin/src/main/js/index.ts | 668 +----------------- .../resources/META-INF/scm/permissions.xml | 668 +----------------- .../META-INF/scm/repository-permissions.xml | 668 +----------------- .../v2/resources/HgConfigResourceTest.java | 668 +----------------- ...alConfigAutoConfigurationResourceTest.java | 668 +----------------- ...alConfigDtoToHgGlobalConfigMapperTest.java | 668 +----------------- .../HgGlobalConfigInIndexResourceTest.java | 668 +----------------- .../v2/resources/HgGlobalConfigTestUtil.java | 668 +----------------- ...alConfigToHgGlobalConfigDtoMapperTest.java | 668 +----------------- .../HgRepositoryConfigEnricherTest.java | 668 +----------------- .../HgRepositoryConfigMapperTest.java | 668 +----------------- .../HgRepositoryConfigResourceTest.java | 668 +----------------- .../scm/autoconfig/AutoConfigModuleTest.java | 668 +----------------- .../AutoConfiguratorProviderTest.java | 668 +----------------- .../autoconfig/PosixAutoConfiguratorTest.java | 668 +----------------- .../WindowsAutoConfiguratorTest.java | 668 +----------------- .../DefaultHgEnvironmentBuilderTest.java | 668 +----------------- .../repository/EmptyHgEnvironmentBuilder.java | 668 +----------------- .../scm/repository/HgConfigResolverTest.java | 668 +----------------- .../HgRepositoryConfigStoreTest.java | 668 +----------------- .../repository/HgRepositoryFactoryTest.java | 668 +----------------- .../repository/HgRepositoryHandlerTest.java | 668 +----------------- .../java/sonia/scm/repository/HgTestUtil.java | 668 +----------------- .../sonia/scm/repository/HgVerifierTest.java | 668 +----------------- .../repository/TempSCMContextProvider.java | 668 +----------------- .../repository/api/HgHookTagProviderTest.java | 668 +----------------- .../repository/client/spi/HgAddCommand.java | 668 +----------------- .../client/spi/HgBranchCommand.java | 668 +----------------- .../client/spi/HgCommitCommand.java | 668 +----------------- .../repository/client/spi/HgPushCommand.java | 668 +----------------- .../client/spi/HgRemoveCommand.java | 668 +----------------- .../HgRepositoryClientFactoryProvider.java | 668 +----------------- .../spi/HgRepositoryClientProvider.java | 668 +----------------- .../repository/client/spi/HgTagCommand.java | 668 +----------------- .../hooks/DefaultHookHandlerTest.java | 668 +----------------- .../hooks/HookContextProviderFactoryTest.java | 668 +----------------- .../scm/repository/hooks/HookServerTest.java | 668 +----------------- .../scm/repository/hooks/SocketsTest.java | 668 +----------------- .../spi/AbstractHgCommandTestBase.java | 668 +----------------- .../repository/spi/HgBlameCommandTest.java | 668 +----------------- .../repository/spi/HgBranchCommandTest.java | 668 +----------------- .../spi/HgBranchDetailsCommandTest.java | 668 +----------------- .../repository/spi/HgBranchesCommandTest.java | 668 +----------------- .../repository/spi/HgBrowseCommandTest.java | 668 +----------------- .../repository/spi/HgBundleCommandTest.java | 668 +----------------- .../scm/repository/spi/HgCatCommandTest.java | 668 +----------------- .../spi/HgChangesetsCommandTest.java | 668 +----------------- .../spi/HgCommandContextFactoryTest.java | 668 +----------------- .../scm/repository/spi/HgDiffCommandTest.java | 668 +----------------- .../spi/HgFullHealthCheckCommandTest.java | 668 +----------------- .../repository/spi/HgIncomingCommandTest.java | 668 +----------------- .../spi/HgLazyChangesetResolverTest.java | 668 +----------------- .../spi/HgLogCommandAncestorTest.java | 668 +----------------- .../scm/repository/spi/HgLogCommandTest.java | 668 +----------------- .../spi/HgModificationsCommandTest.java | 668 +----------------- .../repository/spi/HgModifyCommandTest.java | 668 +----------------- .../repository/spi/HgOutgoingCommandTest.java | 668 +----------------- ...ReceiveRepositoryHookEventFactoryTest.java | 668 +----------------- .../scm/repository/spi/HgPushCommandTest.java | 668 +----------------- .../scm/repository/spi/HgTagCommandTest.java | 668 +----------------- .../scm/repository/spi/HgTagsCommandTest.java | 668 +----------------- .../repository/spi/HgUnbundleCommandTest.java | 668 +----------------- .../repository/spi/HgVersionCommandTest.java | 668 +----------------- .../spi/IncomingOutgoingTestBase.java | 668 +----------------- .../spi/SimpleHgWorkingCopyFactoryTest.java | 668 +----------------- .../spi/TemporaryConfigFactoryTest.java | 668 +----------------- .../HgFileviewCommandResultReaderTest.java | 668 +----------------- .../spi/javahg/HgModificationParserTest.java | 668 +----------------- .../sonia/scm/web/HgPermissionFilterTest.java | 668 +----------------- .../scm/web/HgServletInputStreamTest.java | 668 +----------------- .../scm/web/HgUserAgentProviderTest.java | 668 +----------------- .../java/sonia/scm/web/WireProtocolTest.java | 668 +----------------- .../scm-integration-test-plugin/build.gradle | 668 +----------------- .../it/resource/IntegrationTestResource.java | 668 +----------------- .../scm/it/resource/MergeDetectionHelper.java | 668 +----------------- scm-plugins/scm-legacy-plugin/build.gradle | 668 +----------------- .../scm/legacy/LegacyIndexHalEnricher.java | 668 +----------------- .../java/sonia/scm/legacy/LegacyModule.java | 668 +----------------- ...cyProtocolServletAuthenticationFilter.java | 668 +----------------- .../java/sonia/scm/legacy/LegacyRealm.java | 668 +----------------- .../scm/legacy/LegacyRepositoryService.java | 668 +----------------- .../sonia/scm/legacy/NamespaceAndNameDto.java | 668 +----------------- ...epositoryLegacyProtocolRedirectFilter.java | 668 +----------------- .../src/main/js/DummyComponent.tsx | 668 +----------------- .../scm-legacy-plugin/src/main/js/index.tsx | 668 +----------------- .../sonia/scm/legacy/LegacyRealmTest.java | 668 +----------------- .../legacy/LegacyRepositoryServiceTest.java | 668 +----------------- ...itoryLegacyProtocolRedirectFilterTest.java | 668 +----------------- scm-plugins/scm-svn-plugin/build.gradle | 668 +----------------- .../scm/api/v2/resources/SvnConfigDto.java | 668 +----------------- .../SvnConfigDtoToSvnConfigMapper.java | 668 +----------------- .../resources/SvnConfigInIndexResource.java | 668 +----------------- .../api/v2/resources/SvnConfigResource.java | 668 +----------------- .../SvnConfigToSvnConfigDtoMapper.java | 668 +----------------- .../api/v2/resources/UpdateSvnConfigDto.java | 668 +----------------- .../java/sonia/scm/logging/SVNKitLogger.java | 668 +----------------- .../sonia/scm/repository/Compatibility.java | 668 +----------------- .../ConsolidatingModificationCollector.java | 668 +----------------- .../scm/repository/DBFormatHealthCheck.java | 668 +----------------- .../sonia/scm/repository/ScmSvnErrorCode.java | 668 +----------------- .../sonia/scm/repository/SvnBlameHandler.java | 668 +----------------- .../java/sonia/scm/repository/SvnConfig.java | 668 +----------------- .../sonia/scm/repository/SvnConfigHelper.java | 668 +----------------- .../scm/repository/SvnImportHandler.java | 668 +----------------- .../scm/repository/SvnRepositoryHandler.java | 668 +----------------- .../scm/repository/SvnRepositoryHook.java | 668 +----------------- .../java/sonia/scm/repository/SvnUtil.java | 668 +----------------- .../sonia/scm/repository/SvnV2UpdateStep.java | 668 +----------------- .../scm/repository/SvnWorkingCopyFactory.java | 668 +----------------- .../repository/spi/AbstractSvnCommand.java | 668 +----------------- .../spi/AbstractSvnHookChangesetProvider.java | 668 +----------------- .../repository/spi/ChangesetCollector.java | 668 +----------------- .../repository/spi/SCMSvnDiffGenerator.java | 668 +----------------- .../spi/SimpleSvnWorkingCopyFactory.java | 668 +----------------- .../scm/repository/spi/SvnBlameCommand.java | 668 +----------------- .../scm/repository/spi/SvnBrowseCommand.java | 668 +----------------- .../scm/repository/spi/SvnBundleCommand.java | 668 +----------------- .../scm/repository/spi/SvnCatCommand.java | 668 +----------------- .../repository/spi/SvnChangesetsCommand.java | 668 +----------------- .../sonia/scm/repository/spi/SvnContext.java | 668 +----------------- .../scm/repository/spi/SvnDiffCommand.java | 668 +----------------- .../repository/spi/SvnFileLockCommand.java | 668 +----------------- .../spi/SvnFullHealthCheckCommand.java | 668 +----------------- .../spi/SvnHookContextProvider.java | 668 +----------------- .../scm/repository/spi/SvnLogCommand.java | 668 +----------------- .../scm/repository/spi/SvnLookupCommand.java | 668 +----------------- .../spi/SvnMirrorAuthenticationFactory.java | 668 +----------------- .../scm/repository/spi/SvnMirrorCommand.java | 668 +----------------- .../spi/SvnModificationsCommand.java | 668 +----------------- .../scm/repository/spi/SvnModifyCommand.java | 668 +----------------- .../SvnPostReceiveHookChangesetProvier.java | 668 +----------------- .../SvnPreReceiveHookChangesetProvier.java | 668 +----------------- .../spi/SvnRepositoryServiceProvider.java | 668 +----------------- .../spi/SvnRepositoryServiceResolver.java | 668 +----------------- .../repository/spi/SvnUnbundleCommand.java | 668 +----------------- .../spi/SvnWorkingCopyInitializer.java | 668 +----------------- .../spi/SvnWorkingCopyReclaimer.java | 668 +----------------- .../sonia/scm/web/SvnCollectionRenderer.java | 668 +----------------- .../main/java/sonia/scm/web/SvnDAVConfig.java | 668 +----------------- .../java/sonia/scm/web/SvnDAVServlet.java | 668 +----------------- .../sonia/scm/web/SvnDAVServletProvider.java | 668 +----------------- .../java/sonia/scm/web/SvnGZipFilter.java | 668 +----------------- .../sonia/scm/web/SvnGZipFilterFactory.java | 668 +----------------- .../sonia/scm/web/SvnPermissionFilter.java | 668 +----------------- .../scm/web/SvnPermissionFilterFactory.java | 668 +----------------- .../web/SvnScmProtocolProviderWrapper.java | 668 +----------------- .../java/sonia/scm/web/SvnServletModule.java | 668 +----------------- .../sonia/scm/web/SvnUserAgentProvider.java | 668 +----------------- .../java/sonia/scm/web/SvnVndMediaType.java | 668 +----------------- .../src/main/js/ProtocolInformation.tsx | 668 +----------------- .../scm-svn-plugin/src/main/js/SvnAvatar.tsx | 668 +----------------- .../src/main/js/SvnConfigurationForm.tsx | 668 +----------------- .../src/main/js/SvnGlobalConfiguration.tsx | 668 +----------------- .../scm-svn-plugin/src/main/js/index.ts | 668 +----------------- .../resources/META-INF/scm/permissions.xml | 668 +----------------- .../META-INF/scm/repository-permissions.xml | 668 +----------------- .../SvnConfigDtoToSvnConfigMapperTest.java | 668 +----------------- .../SvnConfigInIndexResourceTest.java | 668 +----------------- .../v2/resources/SvnConfigResourceTest.java | 668 +----------------- .../SvnConfigToSvnConfigDtoMapperTest.java | 668 +----------------- ...onsolidatingModificationCollectorTest.java | 668 +----------------- .../repository/SvnRepositoryHandlerTest.java | 668 +----------------- .../client/spi/SvnChangeWorker.java | 668 +----------------- .../SvnRepositoryClientFactoryProvider.java | 668 +----------------- .../spi/SvnRepositoryClientProvider.java | 668 +----------------- .../spi/AbstractSvnCommandTestBase.java | 668 +----------------- .../spi/SimpleSvnWorkingCopyFactoryTest.java | 668 +----------------- .../repository/spi/SvnBlameCommandTest.java | 668 +----------------- .../repository/spi/SvnBrowseCommandTest.java | 668 +----------------- .../repository/spi/SvnBundleCommandTest.java | 668 +----------------- .../scm/repository/spi/SvnCatCommandTest.java | 668 +----------------- .../spi/SvnChangesetsCommandTest.java | 668 +----------------- .../repository/spi/SvnDiffCommandTest.java | 668 +----------------- .../spi/SvnFileLockCommandTest.java | 668 +----------------- .../spi/SvnFullHealthCheckCommandTest.java | 668 +----------------- .../scm/repository/spi/SvnLogCommandTest.java | 668 +----------------- .../repository/spi/SvnLookupCommandTest.java | 668 +----------------- .../SvnMirrorAuthenticationFactoryTest.java | 668 +----------------- .../repository/spi/SvnMirrorCommandTest.java | 668 +----------------- .../spi/SvnModificationsCommandTest.java | 668 +----------------- .../repository/spi/SvnModifyCommandTest.java | 668 +----------------- .../spi/SvnUnbundleCommandTest.java | 668 +----------------- .../scm/web/SvnUserAgentProviderTest.java | 668 +----------------- 568 files changed, 5680 insertions(+), 373744 deletions(-) diff --git a/scm-plugins/scm-git-plugin/build.gradle b/scm-plugins/scm-git-plugin/build.gradle index 15789cd5d5..3f422e4c6d 100644 --- a/scm-plugins/scm-git-plugin/build.gradle +++ b/scm-plugins/scm-git-plugin/build.gradle @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ plugins { diff --git a/scm-plugins/scm-git-plugin/src/main/java/org/eclipse/jgit/transport/ScmTransportProtocol.java b/scm-plugins/scm-git-plugin/src/main/java/org/eclipse/jgit/transport/ScmTransportProtocol.java index 7428376584..393df0173f 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/org/eclipse/jgit/transport/ScmTransportProtocol.java +++ b/scm-plugins/scm-git-plugin/src/main/java/org/eclipse/jgit/transport/ScmTransportProtocol.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package org.eclipse.jgit.transport; diff --git a/scm-plugins/scm-git-plugin/src/main/java/org/eclipse/jgit/transport/http/WrappedHttpUrlConnection.java b/scm-plugins/scm-git-plugin/src/main/java/org/eclipse/jgit/transport/http/WrappedHttpUrlConnection.java index a8a8791711..0904ed13a5 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/org/eclipse/jgit/transport/http/WrappedHttpUrlConnection.java +++ b/scm-plugins/scm-git-plugin/src/main/java/org/eclipse/jgit/transport/http/WrappedHttpUrlConnection.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package org.eclipse.jgit.transport.http; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigDto.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigDto.java index e334bd188c..bc9b549145 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigDto.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigDto.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigDtoToGitConfigMapper.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigDtoToGitConfigMapper.java index 7626146b63..0b1ba933e2 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigDtoToGitConfigMapper.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigDtoToGitConfigMapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigInIndexResource.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigInIndexResource.java index 4851a17b11..638b1da525 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigInIndexResource.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigInIndexResource.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigResource.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigResource.java index e5ea94b616..80b10d47ee 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigResource.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigResource.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigToGitConfigDtoMapper.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigToGitConfigDtoMapper.java index a8409b674c..7697a224c0 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigToGitConfigDtoMapper.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitConfigToGitConfigDtoMapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigChangeClearRepositoryCacheListener.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigChangeClearRepositoryCacheListener.java index 748d985a93..a4ac778411 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigChangeClearRepositoryCacheListener.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigChangeClearRepositoryCacheListener.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigChangedEvent.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigChangedEvent.java index 296ec0ad50..57c4c26b56 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigChangedEvent.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigChangedEvent.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigDto.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigDto.java index 69d1dafba3..00e6392968 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigDto.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigDto.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigEnricher.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigEnricher.java index 6a4105e96f..0fc5ce5325 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigEnricher.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigEnricher.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigMapper.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigMapper.java index 616d65f093..cdf4ac9651 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigMapper.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigMapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigResource.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigResource.java index 50e3fd8a3c..40569f2937 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigResource.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigResource.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigStoreProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigStoreProvider.java index 903ac457da..60ad5b3e04 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigStoreProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/GitRepositoryConfigStoreProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/RepositoryLinkEnricher.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/RepositoryLinkEnricher.java index 490ddc14d8..374799deed 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/RepositoryLinkEnricher.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/RepositoryLinkEnricher.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateGitConfigDto.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateGitConfigDto.java index 605bbe6aa6..abc7fcc1a8 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateGitConfigDto.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateGitConfigDto.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateGitRepositoryConfigDto.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateGitRepositoryConfigDto.java index a368c7b173..f12a4dd753 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateGitRepositoryConfigDto.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateGitRepositoryConfigDto.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/BaseReceivePackFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/BaseReceivePackFactory.java index 07fc5cb3f8..d83f373df4 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/BaseReceivePackFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/BaseReceivePackFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.protocolcommand.git; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandInterpreter.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandInterpreter.java index 2fdeae362a..e77e2a8464 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandInterpreter.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandInterpreter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.protocolcommand.git; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandInterpreterFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandInterpreterFactory.java index b2272c7e1e..ff243085c2 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandInterpreterFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandInterpreterFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.protocolcommand.git; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandParser.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandParser.java index 0a16bf3a17..1679efcf4c 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandParser.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandParser.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.protocolcommand.git; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandProtocol.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandProtocol.java index b6847e6134..9795b95dbf 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandProtocol.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitCommandProtocol.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.protocolcommand.git; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitRepositoryContextResolver.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitRepositoryContextResolver.java index 13b0ad15d7..9b4a26a7b0 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitRepositoryContextResolver.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/GitRepositoryContextResolver.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.protocolcommand.git; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/ScmReceivePackFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/ScmReceivePackFactory.java index 3872faa118..ba67e5228a 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/ScmReceivePackFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/ScmReceivePackFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.protocolcommand.git; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/ScmUploadPackFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/ScmUploadPackFactory.java index 7fdd8fe273..5415d94d52 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/ScmUploadPackFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/protocolcommand/git/ScmUploadPackFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.protocolcommand.git; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/DefaultBranchChangedDispatcher.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/DefaultBranchChangedDispatcher.java index c8dc7ba328..afa33cc1be 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/DefaultBranchChangedDispatcher.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/DefaultBranchChangedDispatcher.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GPGSignatureResolver.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GPGSignatureResolver.java index fef7e4a058..443f7ff3ee 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GPGSignatureResolver.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GPGSignatureResolver.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverter.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverter.java index 29e9219149..37124fdd75 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverter.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverterFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverterFactory.java index be3259df0d..5e7d57d773 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverterFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitChangesetConverterFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitConfig.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitConfig.java index df8a71c6f9..d6a505bd11 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitConfig.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitConfig.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitConfigHelper.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitConfigHelper.java index 9ba3a1f0e5..30a789792d 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitConfigHelper.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitConfigHelper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitGcTask.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitGcTask.java index d3a78963bb..2b9fbf9e88 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitGcTask.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitGcTask.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHeadModifier.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHeadModifier.java index 8955ca2918..0eb4620739 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHeadModifier.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHeadModifier.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHealthCheck.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHealthCheck.java index 33a6bd230b..25e94bf40f 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHealthCheck.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHealthCheck.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHttpTransportRegistration.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHttpTransportRegistration.java index 5afef1a5e1..842063d2d8 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHttpTransportRegistration.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitHttpTransportRegistration.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitImportHandler.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitImportHandler.java index a586745987..29a2893ddc 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitImportHandler.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitImportHandler.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryConfig.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryConfig.java index f2ca482ed8..4e72e6571a 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryConfig.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryConfig.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryConfigInitializer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryConfigInitializer.java index 9bd0fa584d..1802464dd4 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryConfigInitializer.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryConfigInitializer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryHandler.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryHandler.java index bcbf9d8614..b5bdd98d37 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryHandler.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryHandler.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryModifyListener.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryModifyListener.java index d3887f71f1..c7eb785ebe 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryModifyListener.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryModifyListener.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryPathMatcher.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryPathMatcher.java index f41f6bf22f..b58713297c 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryPathMatcher.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitRepositoryPathMatcher.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitSubModuleParser.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitSubModuleParser.java index 4002f099ed..5370a12bac 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitSubModuleParser.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitSubModuleParser.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitUtil.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitUtil.java index 0a34d081c1..f9c8b6f139 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitUtil.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitUtil.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitWorkQueueShutdownListener.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitWorkQueueShutdownListener.java index 701c4a2d27..6d169e7ff6 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitWorkQueueShutdownListener.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitWorkQueueShutdownListener.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitWorkingCopyFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitWorkingCopyFactory.java index ebc9620c4d..640240c9eb 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitWorkingCopyFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/GitWorkingCopyFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/ScmGpgSigner.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/ScmGpgSigner.java index 49d2f52fbf..c3572f99a0 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/ScmGpgSigner.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/ScmGpgSigner.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/ScmGpgSignerInitializer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/ScmGpgSignerInitializer.java index 8bde0bc3c5..901b4fee76 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/ScmGpgSignerInitializer.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/ScmGpgSignerInitializer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookBranchProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookBranchProvider.java index 875bf52d67..f93687c4d0 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookBranchProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookBranchProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookMessageProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookMessageProvider.java index 29b5ad2f63..70e3f847fa 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookMessageProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookMessageProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookModificationsProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookModificationsProvider.java index a8e72837a2..6253d21d57 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookModificationsProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookModificationsProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookTagProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookTagProvider.java index da723f910d..0355e517b4 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookTagProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitHookTagProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitReceiveHookMergeDetectionProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitReceiveHookMergeDetectionProvider.java index 770b17f867..fd81d378eb 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitReceiveHookMergeDetectionProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/api/GitReceiveHookMergeDetectionProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitCommand.java index 0f62ff2082..02d8d24e25 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitIncomingOutgoingCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitIncomingOutgoingCommand.java index 146c354967..b9e2718f5b 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitIncomingOutgoingCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitIncomingOutgoingCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitPushOrPullCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitPushOrPullCommand.java index b03c2d1737..597f07d6f0 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitPushOrPullCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AbstractGitPushOrPullCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AttributeAnalyzer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AttributeAnalyzer.java index 4d8f754eff..11429677c8 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AttributeAnalyzer.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/AttributeAnalyzer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/BranchBasedModificationsComputer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/BranchBasedModificationsComputer.java index a6ad22bf3a..0e7aabe7eb 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/BranchBasedModificationsComputer.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/BranchBasedModificationsComputer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/Differ.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/Differ.java index 737f82095a..a4825d1f2f 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/Differ.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/Differ.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/FileLockPreCommitHook.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/FileLockPreCommitHook.java index 1485ae1ce4..675d82c6ed 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/FileLockPreCommitHook.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/FileLockPreCommitHook.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/FileRange.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/FileRange.java index d328593c1d..eb242fce65 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/FileRange.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/FileRange.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBlameCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBlameCommand.java index 96d19228ce..10129f36c8 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBlameCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBlameCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchCommand.java index 6749e48fa6..710eb35bf4 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchDetailsCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchDetailsCommand.java index dc65a53887..c5678b9a41 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchDetailsCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchDetailsCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchesCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchesCommand.java index c9202fbe03..0679741e29 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchesCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBranchesCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBrowseCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBrowseCommand.java index c06358b3d9..44639bf4ce 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBrowseCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBrowseCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBundleCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBundleCommand.java index fec2d10829..793aeb973e 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBundleCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitBundleCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitCatCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitCatCommand.java index 17d500a968..c3ade3a7d5 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitCatCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitCatCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitChangesetsCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitChangesetsCommand.java index dc439ad75f..a9c73c6c9f 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitChangesetsCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitChangesetsCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitConfigContextListener.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitConfigContextListener.java index e04969a28a..434e8d6d41 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitConfigContextListener.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitConfigContextListener.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitContext.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitContext.java index ff8cf0a1e7..d123206231 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitContext.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitContext.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitContextFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitContextFactory.java index 0b1d6ce129..53e4399831 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitContextFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitContextFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitConvertingChangesetIterable.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitConvertingChangesetIterable.java index 545f08ce06..0a68d3fc43 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitConvertingChangesetIterable.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitConvertingChangesetIterable.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffCommand.java index 29c01873a2..1150a4d310 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffResult.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffResult.java index 4667096749..bbbaf30826 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffResult.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffResult.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffResultCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffResultCommand.java index b429771813..2fa42c68dc 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffResultCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitDiffResultCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFastForwardIfPossible.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFastForwardIfPossible.java index e416fd4ffb..ba2396b01c 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFastForwardIfPossible.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFastForwardIfPossible.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFileLockCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFileLockCommand.java index 26833c5d85..9744e27af1 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFileLockCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFileLockCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFileLockStoreFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFileLockStoreFactory.java index e742194ff0..7ed96a8523 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFileLockStoreFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitFileLockStoreFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookChangesetCollector.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookChangesetCollector.java index 834ecf1c7e..75fe9a43d4 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookChangesetCollector.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookChangesetCollector.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookChangesetProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookChangesetProvider.java index 51597a33af..9602d010c0 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookChangesetProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookChangesetProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookContextProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookContextProvider.java index 86e6f20b27..a9e1473434 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookContextProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookContextProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHunk.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHunk.java index 595aa04b37..8d53910bc8 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHunk.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHunk.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHunkParser.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHunkParser.java index db49886f39..14b88cd596 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHunkParser.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHunkParser.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitImportHookContextProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitImportHookContextProvider.java index db8260d53d..34c5e1bf22 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitImportHookContextProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitImportHookContextProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitIncomingCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitIncomingCommand.java index 41337e88c9..5eb97f3d80 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitIncomingCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitIncomingCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLazyChangesetResolver.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLazyChangesetResolver.java index 259dd38b25..7a911682c9 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLazyChangesetResolver.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLazyChangesetResolver.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLfsFilterContextListener.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLfsFilterContextListener.java index 19272175b1..25772cbd1c 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLfsFilterContextListener.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLfsFilterContextListener.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java index 1fb18ce515..cd98f05450 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogComputer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogComputer.java index bf3f6fd662..c2a39faedc 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogComputer.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogComputer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeCommand.java index f4cfe65051..d8df8671ac 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeCommit.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeCommit.java index 8c955d6c4d..d06d4db962 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeCommit.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeCommit.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeRebase.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeRebase.java index 9c73315f37..12d6269b8d 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeRebase.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeRebase.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeStrategy.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeStrategy.java index 71229ead23..2d073577f0 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeStrategy.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeStrategy.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeWithSquash.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeWithSquash.java index ab3f38c833..b2d45c9701 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeWithSquash.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMergeWithSquash.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMirrorCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMirrorCommand.java index cac4289b28..4e9f3400cd 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMirrorCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitMirrorCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitModificationsCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitModificationsCommand.java index 8273423279..82b70e8da6 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitModificationsCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitModificationsCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitModifyCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitModifyCommand.java index 4fa38bf026..a9e5dbc80d 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitModifyCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitModifyCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitOutgoingCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitOutgoingCommand.java index 9d14b1ea32..bb8ca6400b 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitOutgoingCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitOutgoingCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPullCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPullCommand.java index 61863dce08..d2b3132b0b 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPullCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPullCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPushCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPushCommand.java index bf6b9e14c9..2672850df7 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPushCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitPushCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryHookEventFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryHookEventFactory.java index ab9d6ce8a9..605bfcde6e 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryHookEventFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryHookEventFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryServiceProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryServiceProvider.java index cf7ecaf167..b2f32b9a86 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryServiceProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryServiceProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryServiceResolver.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryServiceResolver.java index d23bdfe164..08658791f9 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryServiceResolver.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRepositoryServiceResolver.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRevisionExtractor.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRevisionExtractor.java index 1684fd78b2..4a2351f7b5 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRevisionExtractor.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitRevisionExtractor.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagCommand.java index fbec0a5c50..ab4f219c61 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagConverter.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagConverter.java index 6d4cac7df7..21bcd9fe9b 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagConverter.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagConverter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagsCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagsCommand.java index 7edbab4989..505479990e 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagsCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitTagsCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitUnbundleCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitUnbundleCommand.java index 1a63b1ac9b..45bd5b6c20 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitUnbundleCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitUnbundleCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitWorkingCopyInitializer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitWorkingCopyInitializer.java index 834995a642..44f6659b8f 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitWorkingCopyInitializer.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitWorkingCopyInitializer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitWorkingCopyReclaimer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitWorkingCopyReclaimer.java index 66453ac6bc..e9a11b02fe 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitWorkingCopyReclaimer.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitWorkingCopyReclaimer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsBlobStoreCleanFilter.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsBlobStoreCleanFilter.java index 2927c84b8c..e4c0568c2e 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsBlobStoreCleanFilter.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsBlobStoreCleanFilter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsBlobStoreCleanFilterFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsBlobStoreCleanFilterFactory.java index b8a2475178..45dbcf517b 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsBlobStoreCleanFilterFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsBlobStoreCleanFilterFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsLoader.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsLoader.java index e8cdf84e9a..a894917275 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsLoader.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/LfsLoader.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/MirrorHttpConnectionProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/MirrorHttpConnectionProvider.java index 7ea890dd88..1ec21f33c9 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/MirrorHttpConnectionProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/MirrorHttpConnectionProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/ModificationsComputer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/ModificationsComputer.java index 2cc53e67d9..2e6eb0874b 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/ModificationsComputer.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/ModificationsComputer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/PostReceiveRepositoryHookEventFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/PostReceiveRepositoryHookEventFactory.java index 579b61e364..90af25f255 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/PostReceiveRepositoryHookEventFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/PostReceiveRepositoryHookEventFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/PullHttpConnectionProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/PullHttpConnectionProvider.java index 1a40016363..c6b0aff751 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/PullHttpConnectionProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/PullHttpConnectionProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/SimpleGitWorkingCopyFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/SimpleGitWorkingCopyFactory.java index 4581083bbf..809f053892 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/SimpleGitWorkingCopyFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/SimpleGitWorkingCopyFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/UnexpectedMergeResultException.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/UnexpectedMergeResultException.java index 1fa9562fa8..9f40784d9c 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/UnexpectedMergeResultException.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/UnexpectedMergeResultException.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/update/GitV2UpdateStep.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/update/GitV2UpdateStep.java index e64e0902e4..7546cd43d5 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/update/GitV2UpdateStep.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/update/GitV2UpdateStep.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.update; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/CollectingPackParserListener.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/CollectingPackParserListener.java index f94666d996..1e0cea4faf 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/CollectingPackParserListener.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/CollectingPackParserListener.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitContextListener.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitContextListener.java index dc6569de36..36f4e1102a 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitContextListener.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitContextListener.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitFileHook.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitFileHook.java index 6d415c8e19..89948eaa50 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitFileHook.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitFileHook.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitHooks.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitHooks.java index 38a52e1b58..cf90473b96 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitHooks.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitHooks.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitLfsLockApiDetector.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitLfsLockApiDetector.java index b5346811a9..dbdebdc72b 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitLfsLockApiDetector.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitLfsLockApiDetector.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitLfsObjectApiDetector.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitLfsObjectApiDetector.java index 4b538c7632..839b617bb4 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitLfsObjectApiDetector.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitLfsObjectApiDetector.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitPermissionFilter.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitPermissionFilter.java index 1727374330..19ee8ebf17 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitPermissionFilter.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitPermissionFilter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitPermissionFilterFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitPermissionFilterFactory.java index 08be400b49..73e8863173 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitPermissionFilterFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitPermissionFilterFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitReceiveHook.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitReceiveHook.java index cbf1835b5d..fc68b874b6 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitReceiveHook.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitReceiveHook.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitReceivePackFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitReceivePackFactory.java index da15e885d7..bb3f6e0673 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitReceivePackFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitReceivePackFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryResolver.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryResolver.java index d14025f7ae..7e1b1ea7d1 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryResolver.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryResolver.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryViewer.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryViewer.java index 039a202814..9ea34aa6fa 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryViewer.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryViewer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitScmProtocolProviderWrapper.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitScmProtocolProviderWrapper.java index 78949c7d4b..aeb1db267c 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitScmProtocolProviderWrapper.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitScmProtocolProviderWrapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitServletModule.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitServletModule.java index f7694e4d46..f68367090f 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitServletModule.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitServletModule.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitUserAgentProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitUserAgentProvider.java index 6f8f3da1eb..ce6395516e 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitUserAgentProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitUserAgentProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitVndMediaType.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitVndMediaType.java index c058b0233a..92f49e7317 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitVndMediaType.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitVndMediaType.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/LfsLockingProtocolServlet.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/LfsLockingProtocolServlet.java index 6cba178e5a..7522ff882b 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/LfsLockingProtocolServlet.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/LfsLockingProtocolServlet.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java index 215668693a..c21f5c9c01 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServlet.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServletProvider.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServletProvider.java index 7b09e1defd..3a02fefdfd 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServletProvider.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmGitServletProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmHttpConnectionFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmHttpConnectionFactory.java index cbe68096f0..11646841fd 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmHttpConnectionFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/ScmHttpConnectionFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/ExpiringAction.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/ExpiringAction.java index 56b6ce435f..2fd30c75b3 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/ExpiringAction.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/ExpiringAction.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LFSAuthCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LFSAuthCommand.java index ba89e8a116..9a4e54b79d 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LFSAuthCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LFSAuthCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsAccessTokenFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsAccessTokenFactory.java index 3ac83998de..3f3f46ed7c 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsAccessTokenFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsAccessTokenFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsBlobStoreFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsBlobStoreFactory.java index fdccbdef3f..7ff0525576 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsBlobStoreFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsBlobStoreFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsV1UpdateStep.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsV1UpdateStep.java index 52241c2606..d561295efb 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsV1UpdateStep.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/LfsV1UpdateStep.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/RemoveRepositoryIdFromBlobStoreUpdateStep.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/RemoveRepositoryIdFromBlobStoreUpdateStep.java index 969f39e705..db55aad841 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/RemoveRepositoryIdFromBlobStoreUpdateStep.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/RemoveRepositoryIdFromBlobStoreUpdateStep.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/ScmBlobLfsRepository.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/ScmBlobLfsRepository.java index 0e8846c635..01762738e2 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/ScmBlobLfsRepository.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/ScmBlobLfsRepository.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/LfsServletFactory.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/LfsServletFactory.java index 6701800fee..83544e2ca1 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/LfsServletFactory.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/LfsServletFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs.servlet; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/ScmFileTransferServlet.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/ScmFileTransferServlet.java index 129c1c493a..ed50e8eb3a 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/ScmFileTransferServlet.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/ScmFileTransferServlet.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs.servlet; diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/ScmLfsProtocolServlet.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/ScmLfsProtocolServlet.java index d167d09a3e..7dec2fc6ef 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/ScmLfsProtocolServlet.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/lfs/servlet/ScmLfsProtocolServlet.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs.servlet; diff --git a/scm-plugins/scm-git-plugin/src/main/js/CloneInformation.tsx b/scm-plugins/scm-git-plugin/src/main/js/CloneInformation.tsx index 9682ddd63e..6eedb5827e 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/CloneInformation.tsx +++ b/scm-plugins/scm-git-plugin/src/main/js/CloneInformation.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FC } from "react"; diff --git a/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.tsx b/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.tsx index 6d6f7ec20c..523b3a91cb 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.tsx +++ b/scm-plugins/scm-git-plugin/src/main/js/GitAvatar.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-git-plugin/src/main/js/GitBranchInformation.tsx b/scm-plugins/scm-git-plugin/src/main/js/GitBranchInformation.tsx index 69319d29bf..aa23401fe4 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/GitBranchInformation.tsx +++ b/scm-plugins/scm-git-plugin/src/main/js/GitBranchInformation.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-git-plugin/src/main/js/GitGlobalConfiguration.tsx b/scm-plugins/scm-git-plugin/src/main/js/GitGlobalConfiguration.tsx index de018a4287..64a41077c9 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/GitGlobalConfiguration.tsx +++ b/scm-plugins/scm-git-plugin/src/main/js/GitGlobalConfiguration.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FC, useEffect } from "react"; diff --git a/scm-plugins/scm-git-plugin/src/main/js/GitMergeInformation.tsx b/scm-plugins/scm-git-plugin/src/main/js/GitMergeInformation.tsx index 7f015ac542..2dac8e9f0e 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/GitMergeInformation.tsx +++ b/scm-plugins/scm-git-plugin/src/main/js/GitMergeInformation.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-git-plugin/src/main/js/GitTagInformation.tsx b/scm-plugins/scm-git-plugin/src/main/js/GitTagInformation.tsx index 97ef36d0ac..24761aba5a 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/GitTagInformation.tsx +++ b/scm-plugins/scm-git-plugin/src/main/js/GitTagInformation.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FC } from "react"; diff --git a/scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.tsx b/scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.tsx index d7bc939f29..6122b12653 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.tsx +++ b/scm-plugins/scm-git-plugin/src/main/js/ProtocolInformation.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FC, useState } from "react"; diff --git a/scm-plugins/scm-git-plugin/src/main/js/RepositoryConfig.tsx b/scm-plugins/scm-git-plugin/src/main/js/RepositoryConfig.tsx index af0ef59766..2432b83c93 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/RepositoryConfig.tsx +++ b/scm-plugins/scm-git-plugin/src/main/js/RepositoryConfig.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FormEvent } from "react"; diff --git a/scm-plugins/scm-git-plugin/src/main/js/index.test.ts b/scm-plugins/scm-git-plugin/src/main/js/index.test.ts index 8b1ba488aa..fed17b3d0b 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/index.test.ts +++ b/scm-plugins/scm-git-plugin/src/main/js/index.test.ts @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import "@scm-manager/ui-tests"; diff --git a/scm-plugins/scm-git-plugin/src/main/js/index.ts b/scm-plugins/scm-git-plugin/src/main/js/index.ts index 135788c848..fed5d58962 100644 --- a/scm-plugins/scm-git-plugin/src/main/js/index.ts +++ b/scm-plugins/scm-git-plugin/src/main/js/index.ts @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import { binder, extensionPoints } from "@scm-manager/ui-extensions"; diff --git a/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/permissions.xml b/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/permissions.xml index 995b39ae08..621dcd3f1c 100644 --- a/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/permissions.xml +++ b/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/permissions.xml @@ -1,666 +1,18 @@ diff --git a/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/repository-permissions.xml b/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/repository-permissions.xml index 0ea17e77e9..7f42b3da83 100644 --- a/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/repository-permissions.xml +++ b/scm-plugins/scm-git-plugin/src/main/resources/META-INF/scm/repository-permissions.xml @@ -1,665 +1,17 @@ diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigDtoToGitConfigMapperTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigDtoToGitConfigMapperTest.java index 05de92b21c..34e9de998e 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigDtoToGitConfigMapperTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigDtoToGitConfigMapperTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigInIndexResourceTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigInIndexResourceTest.java index c91282ee5c..d03c60b246 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigInIndexResourceTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigInIndexResourceTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigResourceTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigResourceTest.java index 84b38871e4..d298334651 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigResourceTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigResourceTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigToGitConfigDtoMapperTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigToGitConfigDtoMapperTest.java index c07843d2eb..b1b76f1b38 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigToGitConfigDtoMapperTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitConfigToGitConfigDtoMapperTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitRepositoryConfigEnricherTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitRepositoryConfigEnricherTest.java index ad6ed9f8bd..3dd824dbe5 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitRepositoryConfigEnricherTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/GitRepositoryConfigEnricherTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/RepositoryLinkEnricherTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/RepositoryLinkEnricherTest.java index afc7249301..9e174a2104 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/RepositoryLinkEnricherTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/api/v2/resources/RepositoryLinkEnricherTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/protocolcommand/git/BaseReceivePackFactoryTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/protocolcommand/git/BaseReceivePackFactoryTest.java index eb8ec54249..765ed001b5 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/protocolcommand/git/BaseReceivePackFactoryTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/protocolcommand/git/BaseReceivePackFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.protocolcommand.git; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/protocolcommand/git/GitRepositoryContextResolverTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/protocolcommand/git/GitRepositoryContextResolverTest.java index 0489d1b09f..e6daf81f9e 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/protocolcommand/git/GitRepositoryContextResolverTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/protocolcommand/git/GitRepositoryContextResolverTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.protocolcommand.git; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/DefaultBranchChangedDispatcherTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/DefaultBranchChangedDispatcherTest.java index ae52367c01..9a8748984b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/DefaultBranchChangedDispatcherTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/DefaultBranchChangedDispatcherTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GPGSignatureResolverTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GPGSignatureResolverTest.java index ad966a924b..04f74c6ae8 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GPGSignatureResolverTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GPGSignatureResolverTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitChangesetConverterTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitChangesetConverterTest.java index 4588bf7548..5f1403fa54 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitChangesetConverterTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitChangesetConverterTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitGcTaskTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitGcTaskTest.java index 1836d23fd9..7309a54eb7 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitGcTaskTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitGcTaskTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitHeadModifierTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitHeadModifierTest.java index 30a126d0e2..91a3923aa6 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitHeadModifierTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitHeadModifierTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitHttpTransportRegistrationTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitHttpTransportRegistrationTest.java index 29873b1445..2846563694 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitHttpTransportRegistrationTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitHttpTransportRegistrationTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryConfigInitializerTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryConfigInitializerTest.java index 668c858dfe..74b4cd48b3 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryConfigInitializerTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryConfigInitializerTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryHandlerTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryHandlerTest.java index 0fa0947fa5..9c0ed22916 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryHandlerTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryHandlerTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryPathMatcherTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryPathMatcherTest.java index 5ac32db693..f5e16d5a9d 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryPathMatcherTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitRepositoryPathMatcherTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitSubModuleParserTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitSubModuleParserTest.java index c7889444a4..267d99b49d 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitSubModuleParserTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitSubModuleParserTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitTestHelper.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitTestHelper.java index 7a7d89dc5a..e13fe90afe 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitTestHelper.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitTestHelper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitUtilTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitUtilTest.java index 4452e67a61..7d0d0145fc 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitUtilTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/GitUtilTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/ScmGpgSignerTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/ScmGpgSignerTest.java index 0427873e5f..47caba200d 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/ScmGpgSignerTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/ScmGpgSignerTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookBranchProviderTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookBranchProviderTest.java index e417c1b99d..c6d5fbd41e 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookBranchProviderTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookBranchProviderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookModificationsProviderTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookModificationsProviderTest.java index 3106bb2d4b..8d252d209a 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookModificationsProviderTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookModificationsProviderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookTagProviderTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookTagProviderTest.java index ed6b4625c1..d6a45febbb 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookTagProviderTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/api/GitHookTagProviderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitAddCommand.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitAddCommand.java index c763891a59..863a52db1d 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitAddCommand.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitAddCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitBranchCommand.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitBranchCommand.java index 518558ce30..4badd96c10 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitBranchCommand.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitBranchCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitCheckoutCommand.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitCheckoutCommand.java index 12f1629705..d171d46b0f 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitCheckoutCommand.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitCheckoutCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitCommitCommand.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitCommitCommand.java index ac95709318..00de7b31d0 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitCommitCommand.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitCommitCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitDeleteRemoteBranchCommand.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitDeleteRemoteBranchCommand.java index 7e9f921c79..6c5a99b47f 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitDeleteRemoteBranchCommand.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitDeleteRemoteBranchCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitMergeCommand.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitMergeCommand.java index 5f3e48c116..6c2a460a3d 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitMergeCommand.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitMergeCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitPushCommand.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitPushCommand.java index 075f9bf6a3..b895e5533b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitPushCommand.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitPushCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRemoveCommand.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRemoveCommand.java index aa02c69036..ed37571fc3 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRemoveCommand.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRemoveCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRepositoryClientFactoryProvider.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRepositoryClientFactoryProvider.java index 5a6d2918bf..d5e5694104 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRepositoryClientFactoryProvider.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRepositoryClientFactoryProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRepositoryClientProvider.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRepositoryClientProvider.java index df94be478f..635afb165f 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRepositoryClientProvider.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitRepositoryClientProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitTagCommand.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitTagCommand.java index 7a7428d087..8989193210 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitTagCommand.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/client/spi/GitTagCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractGitCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractGitCommandTest.java index c4ab39c932..5bbb13300b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractGitCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractGitCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractGitCommandTestBase.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractGitCommandTestBase.java index 58e852dda2..f11b7b653b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractGitCommandTestBase.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractGitCommandTestBase.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractRemoteCommandTestBase.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractRemoteCommandTestBase.java index 9b6ddd2ea8..7d498d1666 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractRemoteCommandTestBase.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AbstractRemoteCommandTestBase.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AttributeAnalyzerTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AttributeAnalyzerTest.java index 0e40f3d776..b8d473f3f8 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AttributeAnalyzerTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/AttributeAnalyzerTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/BindTransportProtocolRule.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/BindTransportProtocolRule.java index ac1a1539c4..417f4658ac 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/BindTransportProtocolRule.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/BindTransportProtocolRule.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/FileLockPreCommitHookTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/FileLockPreCommitHookTest.java index f217588302..ac8a7095b2 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/FileLockPreCommitHookTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/FileLockPreCommitHookTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBlameCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBlameCommandTest.java index 374c9be174..deabef27a1 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBlameCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBlameCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchCommandTest.java index 2768335b7c..ebefb45ff1 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchDetailsCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchDetailsCommandTest.java index b6f22dfc39..f77c12b2ac 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchDetailsCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchDetailsCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchesCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchesCommandTest.java index efd6df3d95..1c5be30da7 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchesCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBranchesCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommandTest.java index c0c043659a..e1d0099936 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommand_BrokenSubmoduleTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommand_BrokenSubmoduleTest.java index 65136f1d4a..be7c67cb85 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommand_BrokenSubmoduleTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommand_BrokenSubmoduleTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommand_RecursiveDirectoryNameTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommand_RecursiveDirectoryNameTest.java index e898b6523c..a12f07549c 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommand_RecursiveDirectoryNameTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBrowseCommand_RecursiveDirectoryNameTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBundleCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBundleCommandTest.java index e48a180306..ef578bd6fb 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBundleCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitBundleCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitCatCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitCatCommandTest.java index 1cf0eb50ed..ab11371158 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitCatCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitCatCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitChangesetsCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitChangesetsCommandTest.java index 7c69c293c5..815a967885 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitChangesetsCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitChangesetsCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitConfigContextListenerTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitConfigContextListenerTest.java index fd0a5b09bf..eee5215db4 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitConfigContextListenerTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitConfigContextListenerTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommandTest.java index aefc7777c0..95658d4831 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommandWithTagsTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommandWithTagsTest.java index a7e7b58fbd..32bb9f3e3b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommandWithTagsTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommandWithTagsTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommand_DequoteOutputStreamTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommand_DequoteOutputStreamTest.java index 6fd8317ab7..b4cff5647a 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommand_DequoteOutputStreamTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommand_DequoteOutputStreamTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffResultCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffResultCommandTest.java index 020af22c94..0b2253f85b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffResultCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffResultCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitFileLockCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitFileLockCommandTest.java index 1c8695ea1c..dcffb6c1cc 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitFileLockCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitFileLockCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitFileLockStoreFactoryTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitFileLockStoreFactoryTest.java index b121e2bf2a..f2da351a29 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitFileLockStoreFactoryTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitFileLockStoreFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitHookChangesetCollectorTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitHookChangesetCollectorTest.java index 907fb9eb42..b50703947b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitHookChangesetCollectorTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitHookChangesetCollectorTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitHunkParserTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitHunkParserTest.java index 75318a94da..6b99e5a26c 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitHunkParserTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitHunkParserTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitIncomingCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitIncomingCommandTest.java index d608a95add..b42e7b997f 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitIncomingCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitIncomingCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLazyChangesetResolverTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLazyChangesetResolverTest.java index 55ed746b2a..874014544f 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLazyChangesetResolverTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLazyChangesetResolverTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandAncestorTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandAncestorTest.java index 91ee02932c..cb2188b0ec 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandAncestorTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandAncestorTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandTest.java index a2d8e92754..faf02fc03b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitLogCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMergeCommandConflictTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMergeCommandConflictTest.java index a1dfca9bc2..5d8d8be25e 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMergeCommandConflictTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMergeCommandConflictTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMergeCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMergeCommandTest.java index 4c710d29fd..ebd244ea28 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMergeCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMergeCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMirrorCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMirrorCommandTest.java index 3f9743c781..62e60f3f82 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMirrorCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitMirrorCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModificationsCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModificationsCommandTest.java index 847d57e86c..1cc91209a1 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModificationsCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModificationsCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommandTest.java index 5e326ce460..616c4a15e6 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommandTestBase.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommandTestBase.java index 2e392053e0..3dba080ba3 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommandTestBase.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommandTestBase.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommand_LFSTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommand_LFSTest.java index 8164859242..6f662f1503 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommand_LFSTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommand_LFSTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommand_withEmptyRepositoryTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommand_withEmptyRepositoryTest.java index 951b83780a..93d94d749c 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommand_withEmptyRepositoryTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitModifyCommand_withEmptyRepositoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitOutgoingCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitOutgoingCommandTest.java index af2e2408df..de35a69670 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitOutgoingCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitOutgoingCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPostReceiveRepositoryHookEventFactoryTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPostReceiveRepositoryHookEventFactoryTest.java index ba9d3e5cb4..3c6b6922af 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPostReceiveRepositoryHookEventFactoryTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPostReceiveRepositoryHookEventFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPushCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPushCommandTest.java index b9e97578c8..02d8951bf4 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPushCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitPushCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryConfigStoreProviderTestUtil.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryConfigStoreProviderTestUtil.java index 6ab9907a12..aea830a2ca 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryConfigStoreProviderTestUtil.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryConfigStoreProviderTestUtil.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryServiceProviderTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryServiceProviderTest.java index 3406a5c70a..c84cdf08f5 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryServiceProviderTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryServiceProviderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryServiceResolverTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryServiceResolverTest.java index d17099cedc..780a1574d7 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryServiceResolverTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRepositoryServiceResolverTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRevisionExtractorTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRevisionExtractorTest.java index 555433caea..3717b13fc6 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRevisionExtractorTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitRevisionExtractorTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitTagCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitTagCommandTest.java index 6139ce1814..4a6a2df4f2 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitTagCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitTagCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitTagsCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitTagsCommandTest.java index dc635fd506..22f1bc5695 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitTagsCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitTagsCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitUnbundleCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitUnbundleCommandTest.java index 75d035126e..d98268b0e6 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitUnbundleCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitUnbundleCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/LfsLoaderTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/LfsLoaderTest.java index 8f63e51983..26a8071469 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/LfsLoaderTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/LfsLoaderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/MirrorHttpConnectionProviderTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/MirrorHttpConnectionProviderTest.java index 4b18775d18..868228de31 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/MirrorHttpConnectionProviderTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/MirrorHttpConnectionProviderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/SimpleGitWorkingCopyFactoryTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/SimpleGitWorkingCopyFactoryTest.java index a629480cb1..0e753ffd40 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/SimpleGitWorkingCopyFactoryTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/SimpleGitWorkingCopyFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/update/GitV2UpdateStepTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/update/GitV2UpdateStepTest.java index 7898514c73..c672680f0d 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/update/GitV2UpdateStepTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/update/GitV2UpdateStepTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.update; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/CapturingServletOutputStream.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/CapturingServletOutputStream.java index e1bf5371be..7392d0179b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/CapturingServletOutputStream.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/CapturingServletOutputStream.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitLfsLockApiDetectorTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitLfsLockApiDetectorTest.java index 624bc73d40..a2e95627bf 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitLfsLockApiDetectorTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitLfsLockApiDetectorTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitLfsObjectApiDetectorTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitLfsObjectApiDetectorTest.java index 167d62c153..e8722d5f91 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitLfsObjectApiDetectorTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitLfsObjectApiDetectorTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitPermissionFilterTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitPermissionFilterTest.java index 73c58f4726..52d5dd4d8c 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitPermissionFilterTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitPermissionFilterTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitUserAgentProviderTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitUserAgentProviderTest.java index 666c2104b4..cd33a4322f 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitUserAgentProviderTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/GitUserAgentProviderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/LfsLockingProtocolServletTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/LfsLockingProtocolServletTest.java index 5e06c71bfd..2483c5c366 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/LfsLockingProtocolServletTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/LfsLockingProtocolServletTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/ScmGitServletTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/ScmGitServletTest.java index bdb9832b10..c5e7c6733b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/ScmGitServletTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/ScmGitServletTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/ScmHttpConnectionFactoryTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/ScmHttpConnectionFactoryTest.java index 5469a012ba..1baff12d2b 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/ScmHttpConnectionFactoryTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/ScmHttpConnectionFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LFSAuthCommandTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LFSAuthCommandTest.java index 63af888f7a..c00f3b2f2e 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LFSAuthCommandTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LFSAuthCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LfsAccessTokenFactoryTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LfsAccessTokenFactoryTest.java index 632447ff67..1157606dc4 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LfsAccessTokenFactoryTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LfsAccessTokenFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LfsBlobStoreFactoryTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LfsBlobStoreFactoryTest.java index 43dcd6d1e4..f3850106a0 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LfsBlobStoreFactoryTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/LfsBlobStoreFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/RemoveRepositoryIdFromBlobStoreUpdateStepTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/RemoveRepositoryIdFromBlobStoreUpdateStepTest.java index 1152a76c56..e9ab6e5cf6 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/RemoveRepositoryIdFromBlobStoreUpdateStepTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/RemoveRepositoryIdFromBlobStoreUpdateStepTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/ScmBlobLfsRepositoryTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/ScmBlobLfsRepositoryTest.java index 46af10e013..7f750f64c3 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/ScmBlobLfsRepositoryTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/ScmBlobLfsRepositoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/servlet/LfsServletFactoryTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/servlet/LfsServletFactoryTest.java index b69e71697a..29df0e5773 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/servlet/LfsServletFactoryTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/servlet/LfsServletFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs.servlet; diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/servlet/ScmFileTransferServletTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/servlet/ScmFileTransferServletTest.java index a08231fdaa..602512a2d3 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/servlet/ScmFileTransferServletTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/web/lfs/servlet/ScmFileTransferServletTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web.lfs.servlet; diff --git a/scm-plugins/scm-hg-plugin/build.gradle b/scm-plugins/scm-hg-plugin/build.gradle index a95c7971eb..225bfa2777 100644 --- a/scm-plugins/scm-hg-plugin/build.gradle +++ b/scm-plugins/scm-hg-plugin/build.gradle @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ plugins { diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/Encoding.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/Encoding.java index 7579cd4a05..b1d9f5a3fe 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/Encoding.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/Encoding.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/EncodingValidator.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/EncodingValidator.java index 948ea32c4b..e9ebd06332 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/EncodingValidator.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/EncodingValidator.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgConfigLinks.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgConfigLinks.java index b83c85b097..3caa2589c6 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgConfigLinks.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgConfigLinks.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgConfigResource.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgConfigResource.java index 39550d905f..5d7f5d3b04 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgConfigResource.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgConfigResource.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigAutoConfigurationResource.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigAutoConfigurationResource.java index 67c08ec660..9a36d6f6ad 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigAutoConfigurationResource.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigAutoConfigurationResource.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigDtoToHgConfigMapper.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigDtoToHgConfigMapper.java index 6b609ef5c6..aca0bba67f 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigDtoToHgConfigMapper.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigDtoToHgConfigMapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigInIndexResource.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigInIndexResource.java index 399d340a12..7607c7e937 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigInIndexResource.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigInIndexResource.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigToHgGlobalConfigDtoMapper.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigToHgGlobalConfigDtoMapper.java index 17bc4b92aa..4fcbe025cf 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigToHgGlobalConfigDtoMapper.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalConfigToHgGlobalConfigDtoMapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalGlobalConfigDto.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalGlobalConfigDto.java index ef6357f879..b40d19d2eb 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalGlobalConfigDto.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgGlobalGlobalConfigDto.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigDto.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigDto.java index e6ca3796d6..dc647efe42 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigDto.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigDto.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigEnricher.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigEnricher.java index 0e7c8c0ef1..1596b3a972 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigEnricher.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigEnricher.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigMapper.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigMapper.java index 7ede42cd60..aea38eddfa 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigMapper.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigMapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigResource.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigResource.java index 23eba400ac..b4f124985b 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigResource.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/HgRepositoryConfigResource.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateHgGlobalConfigDto.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateHgGlobalConfigDto.java index 91b523d21d..ad483f33af 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateHgGlobalConfigDto.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateHgGlobalConfigDto.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfigModule.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfigModule.java index 7128f0b099..476ef878fc 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfigModule.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfigModule.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfigurator.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfigurator.java index baccd7d9bf..258ca5b28b 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfigurator.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfigurator.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfiguratorProvider.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfiguratorProvider.java index a5a1ff44bf..aa29cfb0ba 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfiguratorProvider.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/AutoConfiguratorProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/NoOpAutoConfigurator.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/NoOpAutoConfigurator.java index 7a47dd1be5..fd731b4cb1 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/NoOpAutoConfigurator.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/NoOpAutoConfigurator.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/PosixAutoConfigurator.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/PosixAutoConfigurator.java index ca9492f893..831349345a 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/PosixAutoConfigurator.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/PosixAutoConfigurator.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/WindowsAutoConfigurator.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/WindowsAutoConfigurator.java index cb2ea75764..ef1d6b980d 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/WindowsAutoConfigurator.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/WindowsAutoConfigurator.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/WindowsRegistry.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/WindowsRegistry.java index fc732fd2b6..2a132d47c1 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/WindowsRegistry.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/autoconfig/WindowsRegistry.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLogger.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLogger.java index 4463580898..cbd5a8b9c1 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLogger.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLogger.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.log; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLoggerFactory.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLoggerFactory.java index f22c288eaf..807723e82c 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLoggerFactory.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLoggerFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.log; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLoggerFactoryBinder.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLoggerFactoryBinder.java index d5973549a6..617f00fadd 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLoggerFactoryBinder.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/log/HgLoggerFactoryBinder.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.log; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/DefaultHgEnvironmentBuilder.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/DefaultHgEnvironmentBuilder.java index c0dd33c37f..e63f315707 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/DefaultHgEnvironmentBuilder.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/DefaultHgEnvironmentBuilder.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgConfig.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgConfig.java index 0c45ec5d43..90a0fa6d57 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgConfig.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgConfig.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgConfigResolver.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgConfigResolver.java index 6ed63c592e..f54b051c94 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgConfigResolver.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgConfigResolver.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgEnvironmentBuilder.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgEnvironmentBuilder.java index e6fda4d343..960be1df38 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgEnvironmentBuilder.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgEnvironmentBuilder.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgExtensions.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgExtensions.java index dd718150c7..97a5f84d7b 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgExtensions.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgExtensions.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgGlobalConfig.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgGlobalConfig.java index 3aac2de072..47f4312f1e 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgGlobalConfig.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgGlobalConfig.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHealthCheck.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHealthCheck.java index 70117ce933..d9d88167e4 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHealthCheck.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgHealthCheck.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgImportHandler.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgImportHandler.java index 4476cdd1d2..68e51ae271 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgImportHandler.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgImportHandler.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryConfig.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryConfig.java index ec3de9e757..aa5867d6a9 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryConfig.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryConfig.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryConfigStore.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryConfigStore.java index 6d8d5c2563..09ca457ed9 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryConfigStore.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryConfigStore.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryFactory.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryFactory.java index 8d3002451f..f14eb48088 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryFactory.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryHandler.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryHandler.java index 667b2fd4dc..c728b23872 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryHandler.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgRepositoryHandler.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVerifier.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVerifier.java index c1ffa8147c..03a6d9e12e 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVerifier.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/HgVerifier.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookBranchProvider.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookBranchProvider.java index 5c7cccd815..ff24f8c74b 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookBranchProvider.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookBranchProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookMessage.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookMessage.java index 0ec2c178f1..1f61bc7814 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookMessage.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookMessage.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookMessageProvider.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookMessageProvider.java index c94a2ca027..84c2e77a5a 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookMessageProvider.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookMessageProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookTagProvider.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookTagProvider.java index 6e39bffa8f..74c99ba7f0 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookTagProvider.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/api/HgHookTagProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/DefaultHookHandler.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/DefaultHookHandler.java index ae035c0814..a81610aeb9 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/DefaultHookHandler.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/DefaultHookHandler.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookContextProviderFactory.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookContextProviderFactory.java index 35f61cf1d1..6092c4d0ce 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookContextProviderFactory.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookContextProviderFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookEnvironment.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookEnvironment.java index 552cf6344d..df3269bd86 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookEnvironment.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookEnvironment.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookHandler.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookHandler.java index b5d87aabc5..25316d36f0 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookHandler.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookHandler.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookHandlerFactory.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookHandlerFactory.java index cf57512b87..91eec23afa 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookHandlerFactory.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookHandlerFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookModule.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookModule.java index 42e3dd4dbc..9fe37bf246 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookModule.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookModule.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookServer.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookServer.java index 02d18aa601..13237af4eb 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookServer.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/HookServer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/Sockets.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/Sockets.java index 8337614d75..3935656a77 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/Sockets.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/hooks/Sockets.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractCommand.java index 3739b444de..548d818eb5 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractHgPushOrPullCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractHgPushOrPullCommand.java index 28e8f25bd7..f436b3069d 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractHgPushOrPullCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractHgPushOrPullCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractWorkingCopyCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractWorkingCopyCommand.java index 2a7417bf69..5f4f8335c2 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractWorkingCopyCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/AbstractWorkingCopyCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBlameCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBlameCommand.java index 228fd6e2b7..f6b515de7b 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBlameCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBlameCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchCommand.java index be860fc625..281693f6b0 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchDetailsCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchDetailsCommand.java index 904fb025e3..e5a651880e 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchDetailsCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchDetailsCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesCommand.java index b65115bef6..19670feec3 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesTagsExtractor.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesTagsExtractor.java index d4612e095e..87b49956f2 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesTagsExtractor.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBranchesTagsExtractor.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java index fd56a672e1..118cd96468 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBrowseCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBundleCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBundleCommand.java index ea53dea171..04b1d62738 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBundleCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgBundleCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCatCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCatCommand.java index a04261ec67..15d56478ed 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCatCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCatCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgChangesetsCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgChangesetsCommand.java index 76cbb63072..53ada09505 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgChangesetsCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgChangesetsCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCommandContext.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCommandContext.java index 38d02467f1..5d2de332a2 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCommandContext.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCommandContext.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCommandContextFactory.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCommandContextFactory.java index 0c2df5d8b1..62c8964c42 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCommandContextFactory.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgCommandContextFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgDiffCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgDiffCommand.java index cd80868713..e48804abe0 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgDiffCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgDiffCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgFullHealthCheckCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgFullHealthCheckCommand.java index 4027c47418..872cac1ea8 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgFullHealthCheckCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgFullHealthCheckCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgHookChangesetProvider.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgHookChangesetProvider.java index 45e2205c1c..36b597cab2 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgHookChangesetProvider.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgHookChangesetProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgHookContextProvider.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgHookContextProvider.java index 17f9d484fa..9d306b2ad0 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgHookContextProvider.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgHookContextProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgImportHookContextProvider.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgImportHookContextProvider.java index 775ba2d539..a79c085ed4 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgImportHookContextProvider.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgImportHookContextProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgIncomingCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgIncomingCommand.java index 1b8c61a973..f312e93e53 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgIncomingCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgIncomingCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLazyChangesetResolver.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLazyChangesetResolver.java index 4bae5cd887..38292c8552 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLazyChangesetResolver.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLazyChangesetResolver.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLogCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLogCommand.java index 6e6afcc32d..b469d35fdf 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLogCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgLogCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgModificationsCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgModificationsCommand.java index 26f0841319..a75453da7b 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgModificationsCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgModificationsCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgModifyCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgModifyCommand.java index a1738152ac..a94b1d960a 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgModifyCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgModifyCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgOutgoingCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgOutgoingCommand.java index 0f632ef5d7..f726ea6c50 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgOutgoingCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgOutgoingCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPullCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPullCommand.java index 21ce7e1d38..d01023231f 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPullCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPullCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPushCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPushCommand.java index 57847410f3..d60c06d19f 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPushCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgPushCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryHookEventFactory.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryHookEventFactory.java index ecb22d27ae..eef4557c3a 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryHookEventFactory.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryHookEventFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceProvider.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceProvider.java index 00c0983ab6..960726fe2e 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceProvider.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceResolver.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceResolver.java index cd940f4533..ce428127b9 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceResolver.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgRepositoryServiceResolver.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgTagCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgTagCommand.java index d6044179d0..3e9875b684 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgTagCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgTagCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgTagsCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgTagsCommand.java index 80edf1723e..e66c4c5a51 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgTagsCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgTagsCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgUnbundleCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgUnbundleCommand.java index 778ca90668..1e05b81682 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgUnbundleCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgUnbundleCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgVerifyCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgVerifyCommand.java index 7d3c8c7e83..7843473889 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgVerifyCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgVerifyCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgVersionCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgVersionCommand.java index 8df921edaa..f212b3f3d0 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgVersionCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgVersionCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgWorkingCopyFactory.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgWorkingCopyFactory.java index c96e5e6402..8d0b6c8783 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgWorkingCopyFactory.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/HgWorkingCopyFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/SimpleHgWorkingCopyFactory.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/SimpleHgWorkingCopyFactory.java index 54c3e8b746..f606d6d5f9 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/SimpleHgWorkingCopyFactory.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/SimpleHgWorkingCopyFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/TemporaryConfigFactory.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/TemporaryConfigFactory.java index 60e66e3aeb..f633af8923 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/TemporaryConfigFactory.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/TemporaryConfigFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/UserFormatter.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/UserFormatter.java index 3c2d826b29..6849632cd3 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/UserFormatter.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/UserFormatter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/AbstractChangesetCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/AbstractChangesetCommand.java index 3470b02fe2..c2134eb188 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/AbstractChangesetCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/AbstractChangesetCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgDiffInternalCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgDiffInternalCommand.java index 4ad20f9868..e41e10857b 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgDiffInternalCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgDiffInternalCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewCommand.java index f3aff3be15..8e1effc235 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewCommandResultReader.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewCommandResultReader.java index 59b9d315a9..ff76b9cfb6 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewCommandResultReader.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewCommandResultReader.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewExtension.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewExtension.java index 95195dd3d7..b46236f81a 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewExtension.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgFileviewExtension.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgIncomingChangesetCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgIncomingChangesetCommand.java index 8b0daeb072..a716275bb1 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgIncomingChangesetCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgIncomingChangesetCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgIncomingOutgoingChangesetCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgIncomingOutgoingChangesetCommand.java index 8bbd0e9982..9f23f04870 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgIncomingOutgoingChangesetCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgIncomingOutgoingChangesetCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgLogChangesetCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgLogChangesetCommand.java index 7308635ae8..57fd7e50d4 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgLogChangesetCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgLogChangesetCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgModificationParser.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgModificationParser.java index c62d28f1ad..049adb876e 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgModificationParser.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgModificationParser.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgOutgoingChangesetCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgOutgoingChangesetCommand.java index f219932306..1c02bbc6a9 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgOutgoingChangesetCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/HgOutgoingChangesetCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/StateCommand.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/StateCommand.java index af114aa374..4f43c7d01c 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/StateCommand.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/repository/spi/javahg/StateCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIExceptionHandler.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIExceptionHandler.java index 3fee42adbe..207e723571 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIExceptionHandler.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIExceptionHandler.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIServlet.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIServlet.java index 2ef841885c..f7706aae20 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIServlet.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIServlet.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIServletProvider.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIServletProvider.java index b24e9e36e3..c66a5615ca 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIServletProvider.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgCGIServletProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgPermissionFilter.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgPermissionFilter.java index 8d8fc5d750..0cd1868e28 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgPermissionFilter.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgPermissionFilter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgPermissionFilterFactory.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgPermissionFilterFactory.java index 331df7f080..4d9a46e242 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgPermissionFilterFactory.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgPermissionFilterFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgScmProtocolProviderWrapper.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgScmProtocolProviderWrapper.java index 4fdd39cec5..12f68405b4 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgScmProtocolProviderWrapper.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgScmProtocolProviderWrapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletInputStream.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletInputStream.java index b8a5daaf04..f574fe1ef7 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletInputStream.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletInputStream.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletModule.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletModule.java index 5deb2335ce..7d6f066c5d 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletModule.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletModule.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletRequest.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletRequest.java index 127b2de26a..e2e721dc2a 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletRequest.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgServletRequest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgUserAgentProvider.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgUserAgentProvider.java index 81af62a2b6..318237769d 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgUserAgentProvider.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgUserAgentProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgUtil.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgUtil.java index 7ea9c3d29b..9cc0ba7876 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgUtil.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgUtil.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgVndMediaType.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgVndMediaType.java index b26c2036e8..97bd7f9029 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgVndMediaType.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/HgVndMediaType.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/WireProtocol.java b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/WireProtocol.java index 60cd21c2ab..0a6f9ea4c8 100644 --- a/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/WireProtocol.java +++ b/scm-plugins/scm-hg-plugin/src/main/java/sonia/scm/web/WireProtocol.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.tsx b/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.tsx index b61dda32b9..64a435083d 100644 --- a/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.tsx +++ b/scm-plugins/scm-hg-plugin/src/main/js/HgAvatar.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/HgBranchInformation.tsx b/scm-plugins/scm-hg-plugin/src/main/js/HgBranchInformation.tsx index a7d7ffd91f..6fa2d4cdc9 100644 --- a/scm-plugins/scm-hg-plugin/src/main/js/HgBranchInformation.tsx +++ b/scm-plugins/scm-hg-plugin/src/main/js/HgBranchInformation.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/HgConfigurationForm.tsx b/scm-plugins/scm-hg-plugin/src/main/js/HgConfigurationForm.tsx index 25d0d21ba5..7583f433ca 100644 --- a/scm-plugins/scm-hg-plugin/src/main/js/HgConfigurationForm.tsx +++ b/scm-plugins/scm-hg-plugin/src/main/js/HgConfigurationForm.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FC, useEffect, useState } from "react"; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/HgGlobalConfiguration.tsx b/scm-plugins/scm-hg-plugin/src/main/js/HgGlobalConfiguration.tsx index 8e2a72f46c..0688afbbdc 100644 --- a/scm-plugins/scm-hg-plugin/src/main/js/HgGlobalConfiguration.tsx +++ b/scm-plugins/scm-hg-plugin/src/main/js/HgGlobalConfiguration.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/HgRepositoryConfigurationForm.tsx b/scm-plugins/scm-hg-plugin/src/main/js/HgRepositoryConfigurationForm.tsx index 914c7eb27a..9f4cb407c3 100644 --- a/scm-plugins/scm-hg-plugin/src/main/js/HgRepositoryConfigurationForm.tsx +++ b/scm-plugins/scm-hg-plugin/src/main/js/HgRepositoryConfigurationForm.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import { Repository } from "@scm-manager/ui-types"; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/HgTagInformation.tsx b/scm-plugins/scm-hg-plugin/src/main/js/HgTagInformation.tsx index 7f3dc46eeb..f6c33d1f2b 100644 --- a/scm-plugins/scm-hg-plugin/src/main/js/HgTagInformation.tsx +++ b/scm-plugins/scm-hg-plugin/src/main/js/HgTagInformation.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FC } from "react"; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.tsx b/scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.tsx index d4e97c1d4a..b752a2ddd8 100644 --- a/scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.tsx +++ b/scm-plugins/scm-hg-plugin/src/main/js/ProtocolInformation.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FC } from "react"; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/hooks.ts b/scm-plugins/scm-hg-plugin/src/main/js/hooks.ts index 12a240216b..cbc2a514be 100644 --- a/scm-plugins/scm-hg-plugin/src/main/js/hooks.ts +++ b/scm-plugins/scm-hg-plugin/src/main/js/hooks.ts @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import { useEffect, useState } from "react"; diff --git a/scm-plugins/scm-hg-plugin/src/main/js/index.ts b/scm-plugins/scm-hg-plugin/src/main/js/index.ts index 5e28e7e6d2..253eb58258 100644 --- a/scm-plugins/scm-hg-plugin/src/main/js/index.ts +++ b/scm-plugins/scm-hg-plugin/src/main/js/index.ts @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import { binder, extensionPoints } from "@scm-manager/ui-extensions"; diff --git a/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/permissions.xml b/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/permissions.xml index 6f8343eb87..e058518a04 100644 --- a/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/permissions.xml +++ b/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/permissions.xml @@ -1,666 +1,18 @@ diff --git a/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/repository-permissions.xml b/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/repository-permissions.xml index 4208f77c6c..94a5fabdfd 100644 --- a/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/repository-permissions.xml +++ b/scm-plugins/scm-hg-plugin/src/main/resources/META-INF/scm/repository-permissions.xml @@ -1,665 +1,17 @@ diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgConfigResourceTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgConfigResourceTest.java index ddc4eae596..ac66ed441b 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgConfigResourceTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgConfigResourceTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigAutoConfigurationResourceTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigAutoConfigurationResourceTest.java index 6d839d3769..613a586235 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigAutoConfigurationResourceTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigAutoConfigurationResourceTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigDtoToHgGlobalConfigMapperTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigDtoToHgGlobalConfigMapperTest.java index 01279a75c3..57f0bc2ec4 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigDtoToHgGlobalConfigMapperTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigDtoToHgGlobalConfigMapperTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigInIndexResourceTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigInIndexResourceTest.java index 4253023169..02230a296c 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigInIndexResourceTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigInIndexResourceTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigTestUtil.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigTestUtil.java index ea04f4e094..680d54bd41 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigTestUtil.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigTestUtil.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigToHgGlobalConfigDtoMapperTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigToHgGlobalConfigDtoMapperTest.java index fd08e83f19..450dee57c8 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigToHgGlobalConfigDtoMapperTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgGlobalConfigToHgGlobalConfigDtoMapperTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigEnricherTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigEnricherTest.java index 2981cad35d..f3dad3a251 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigEnricherTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigEnricherTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigMapperTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigMapperTest.java index c6e7c929ad..1ba3c5a077 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigMapperTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigMapperTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigResourceTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigResourceTest.java index bdf6d167bf..a5683fa9b5 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigResourceTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/api/v2/resources/HgRepositoryConfigResourceTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/AutoConfigModuleTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/AutoConfigModuleTest.java index 5fb5c6a954..ef76bef611 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/AutoConfigModuleTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/AutoConfigModuleTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/AutoConfiguratorProviderTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/AutoConfiguratorProviderTest.java index 2c65fb0518..a88b60de41 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/AutoConfiguratorProviderTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/AutoConfiguratorProviderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/PosixAutoConfiguratorTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/PosixAutoConfiguratorTest.java index 6297cef46a..b1ec4384b0 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/PosixAutoConfiguratorTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/PosixAutoConfiguratorTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/WindowsAutoConfiguratorTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/WindowsAutoConfiguratorTest.java index e8314f02e0..361353923e 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/WindowsAutoConfiguratorTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/autoconfig/WindowsAutoConfiguratorTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.autoconfig; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/DefaultHgEnvironmentBuilderTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/DefaultHgEnvironmentBuilderTest.java index c38ce2f5ba..4c00051e28 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/DefaultHgEnvironmentBuilderTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/DefaultHgEnvironmentBuilderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/EmptyHgEnvironmentBuilder.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/EmptyHgEnvironmentBuilder.java index 3365dfaefe..faf42fe480 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/EmptyHgEnvironmentBuilder.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/EmptyHgEnvironmentBuilder.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgConfigResolverTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgConfigResolverTest.java index 8c30cc6e7d..e12147b4ed 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgConfigResolverTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgConfigResolverTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryConfigStoreTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryConfigStoreTest.java index d14bce84f4..96d8b8cff9 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryConfigStoreTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryConfigStoreTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryFactoryTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryFactoryTest.java index c6f99801b6..e79105780f 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryFactoryTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryHandlerTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryHandlerTest.java index 4f856993af..69e5785c8a 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryHandlerTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgRepositoryHandlerTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgTestUtil.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgTestUtil.java index a174accb2f..e75eb9b63c 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgTestUtil.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgTestUtil.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgVerifierTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgVerifierTest.java index d0907d7963..209e04af4c 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgVerifierTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/HgVerifierTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/TempSCMContextProvider.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/TempSCMContextProvider.java index 7080e7da7f..7ad038e4d6 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/TempSCMContextProvider.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/TempSCMContextProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/api/HgHookTagProviderTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/api/HgHookTagProviderTest.java index 3eede08428..559949b96a 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/api/HgHookTagProviderTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/api/HgHookTagProviderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.api; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgAddCommand.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgAddCommand.java index 9f6070ea47..8ca44d41e2 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgAddCommand.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgAddCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgBranchCommand.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgBranchCommand.java index 185ede9b4a..67671fbee1 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgBranchCommand.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgBranchCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgCommitCommand.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgCommitCommand.java index 990185b75f..d3ad741bc7 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgCommitCommand.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgCommitCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgPushCommand.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgPushCommand.java index 5e750393eb..b09550ec27 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgPushCommand.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgPushCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRemoveCommand.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRemoveCommand.java index 2961989ef3..48df206eaf 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRemoveCommand.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRemoveCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRepositoryClientFactoryProvider.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRepositoryClientFactoryProvider.java index b0275061b7..83c898158b 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRepositoryClientFactoryProvider.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRepositoryClientFactoryProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRepositoryClientProvider.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRepositoryClientProvider.java index 0559f9a112..1c3a097a01 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRepositoryClientProvider.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgRepositoryClientProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgTagCommand.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgTagCommand.java index 9623ae5525..2f00046fcc 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgTagCommand.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/client/spi/HgTagCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/DefaultHookHandlerTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/DefaultHookHandlerTest.java index bf67c18a9a..a674cbc00d 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/DefaultHookHandlerTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/DefaultHookHandlerTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/HookContextProviderFactoryTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/HookContextProviderFactoryTest.java index 64c63c4ebf..c65b765287 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/HookContextProviderFactoryTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/HookContextProviderFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/HookServerTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/HookServerTest.java index 3a33f87570..4d12c676e7 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/HookServerTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/HookServerTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/SocketsTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/SocketsTest.java index 91266ea777..de5da37de9 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/SocketsTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/hooks/SocketsTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.hooks; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/AbstractHgCommandTestBase.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/AbstractHgCommandTestBase.java index 66df4eb33a..8c162f6f78 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/AbstractHgCommandTestBase.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/AbstractHgCommandTestBase.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBlameCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBlameCommandTest.java index f88b9e1d20..d9512fda23 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBlameCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBlameCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchCommandTest.java index 67dfdca8f0..e05b935579 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchDetailsCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchDetailsCommandTest.java index f07cbad928..edb5104385 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchDetailsCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchDetailsCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchesCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchesCommandTest.java index dc72341390..ccc8760918 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchesCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBranchesCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBrowseCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBrowseCommandTest.java index ac31a10dad..0986f9765b 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBrowseCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBrowseCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBundleCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBundleCommandTest.java index 6bf42d3970..6184f195fe 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBundleCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgBundleCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCatCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCatCommandTest.java index 48265364c6..2c998d2332 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCatCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCatCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgChangesetsCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgChangesetsCommandTest.java index 7d1335cd7e..1fb0ed81f7 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgChangesetsCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgChangesetsCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCommandContextFactoryTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCommandContextFactoryTest.java index 82c06e9b7e..3b167ca437 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCommandContextFactoryTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgCommandContextFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgDiffCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgDiffCommandTest.java index 236fc5a56d..0481c8baf5 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgDiffCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgDiffCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgFullHealthCheckCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgFullHealthCheckCommandTest.java index c9272698a5..52cf93fe4b 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgFullHealthCheckCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgFullHealthCheckCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgIncomingCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgIncomingCommandTest.java index d1b70b8df4..d631b5c007 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgIncomingCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgIncomingCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLazyChangesetResolverTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLazyChangesetResolverTest.java index a6eec2ac86..433a8f98eb 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLazyChangesetResolverTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLazyChangesetResolverTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandAncestorTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandAncestorTest.java index 8fc8206686..679318b8b1 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandAncestorTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandAncestorTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandTest.java index 3c922611ba..178742eebc 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgLogCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgModificationsCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgModificationsCommandTest.java index ad9daede55..35db903bea 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgModificationsCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgModificationsCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgModifyCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgModifyCommandTest.java index 11a5fc0a3b..e759c7cd98 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgModifyCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgModifyCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgOutgoingCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgOutgoingCommandTest.java index 7532a8d980..1d9c446352 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgOutgoingCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgOutgoingCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgPostReceiveRepositoryHookEventFactoryTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgPostReceiveRepositoryHookEventFactoryTest.java index 7a5ee45220..a3e67041e9 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgPostReceiveRepositoryHookEventFactoryTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgPostReceiveRepositoryHookEventFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgPushCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgPushCommandTest.java index 1882ffe8d0..9e24d0e254 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgPushCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgPushCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgTagCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgTagCommandTest.java index 260c61045c..d1ce7cc631 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgTagCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgTagCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgTagsCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgTagsCommandTest.java index 95fbda43e1..3efaef71c4 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgTagsCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgTagsCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgUnbundleCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgUnbundleCommandTest.java index f3baccf36b..202bb81257 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgUnbundleCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgUnbundleCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgVersionCommandTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgVersionCommandTest.java index ffba353d4f..4d06972973 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgVersionCommandTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/HgVersionCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/IncomingOutgoingTestBase.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/IncomingOutgoingTestBase.java index ffc73f8806..28ca92c9b0 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/IncomingOutgoingTestBase.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/IncomingOutgoingTestBase.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/SimpleHgWorkingCopyFactoryTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/SimpleHgWorkingCopyFactoryTest.java index f2bb864c67..73493faf72 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/SimpleHgWorkingCopyFactoryTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/SimpleHgWorkingCopyFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/TemporaryConfigFactoryTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/TemporaryConfigFactoryTest.java index 1bc5360064..91832d0654 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/TemporaryConfigFactoryTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/TemporaryConfigFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/javahg/HgFileviewCommandResultReaderTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/javahg/HgFileviewCommandResultReaderTest.java index 2dedec4bd6..4b9abdacd8 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/javahg/HgFileviewCommandResultReaderTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/javahg/HgFileviewCommandResultReaderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/javahg/HgModificationParserTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/javahg/HgModificationParserTest.java index eef6f3322e..4d9c4e7dc3 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/javahg/HgModificationParserTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/repository/spi/javahg/HgModificationParserTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi.javahg; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgPermissionFilterTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgPermissionFilterTest.java index c15d88a678..14f5fa198e 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgPermissionFilterTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgPermissionFilterTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgServletInputStreamTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgServletInputStreamTest.java index 2977e7b4f6..1bb9655690 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgServletInputStreamTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgServletInputStreamTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgUserAgentProviderTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgUserAgentProviderTest.java index b1fbd0aa23..fb2e501914 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgUserAgentProviderTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/HgUserAgentProviderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/WireProtocolTest.java b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/WireProtocolTest.java index 03a43d157d..642e0f1492 100644 --- a/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/WireProtocolTest.java +++ b/scm-plugins/scm-hg-plugin/src/test/java/sonia/scm/web/WireProtocolTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-integration-test-plugin/build.gradle b/scm-plugins/scm-integration-test-plugin/build.gradle index 59c9819992..eb17a3f5cb 100644 --- a/scm-plugins/scm-integration-test-plugin/build.gradle +++ b/scm-plugins/scm-integration-test-plugin/build.gradle @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ plugins { diff --git a/scm-plugins/scm-integration-test-plugin/src/main/java/sonia/scm/it/resource/IntegrationTestResource.java b/scm-plugins/scm-integration-test-plugin/src/main/java/sonia/scm/it/resource/IntegrationTestResource.java index e4054a9fa2..9cad654e8c 100644 --- a/scm-plugins/scm-integration-test-plugin/src/main/java/sonia/scm/it/resource/IntegrationTestResource.java +++ b/scm-plugins/scm-integration-test-plugin/src/main/java/sonia/scm/it/resource/IntegrationTestResource.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.it.resource; diff --git a/scm-plugins/scm-integration-test-plugin/src/main/java/sonia/scm/it/resource/MergeDetectionHelper.java b/scm-plugins/scm-integration-test-plugin/src/main/java/sonia/scm/it/resource/MergeDetectionHelper.java index 18c7ff7d3a..729446f8b5 100644 --- a/scm-plugins/scm-integration-test-plugin/src/main/java/sonia/scm/it/resource/MergeDetectionHelper.java +++ b/scm-plugins/scm-integration-test-plugin/src/main/java/sonia/scm/it/resource/MergeDetectionHelper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.it.resource; diff --git a/scm-plugins/scm-legacy-plugin/build.gradle b/scm-plugins/scm-legacy-plugin/build.gradle index 40b7dbe41e..8f32fbe572 100644 --- a/scm-plugins/scm-legacy-plugin/build.gradle +++ b/scm-plugins/scm-legacy-plugin/build.gradle @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ plugins { diff --git a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyIndexHalEnricher.java b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyIndexHalEnricher.java index a2e06d96be..68ea28218a 100644 --- a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyIndexHalEnricher.java +++ b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyIndexHalEnricher.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.legacy; diff --git a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyModule.java b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyModule.java index c203443d3d..2cf5393ff6 100644 --- a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyModule.java +++ b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyModule.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.legacy; diff --git a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyProtocolServletAuthenticationFilter.java b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyProtocolServletAuthenticationFilter.java index b5fb02e335..273d81fe97 100644 --- a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyProtocolServletAuthenticationFilter.java +++ b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyProtocolServletAuthenticationFilter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.legacy; diff --git a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyRealm.java b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyRealm.java index 4ed380f9b7..aaf2920e2a 100644 --- a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyRealm.java +++ b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyRealm.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.legacy; diff --git a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyRepositoryService.java b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyRepositoryService.java index b0f6695eb5..5a5f2fb447 100644 --- a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyRepositoryService.java +++ b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/LegacyRepositoryService.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.legacy; diff --git a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/NamespaceAndNameDto.java b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/NamespaceAndNameDto.java index 9dd3c19ed6..3564336858 100644 --- a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/NamespaceAndNameDto.java +++ b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/NamespaceAndNameDto.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.legacy; diff --git a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/RepositoryLegacyProtocolRedirectFilter.java b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/RepositoryLegacyProtocolRedirectFilter.java index 75d7c09809..fdcd0f5c90 100644 --- a/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/RepositoryLegacyProtocolRedirectFilter.java +++ b/scm-plugins/scm-legacy-plugin/src/main/java/sonia/scm/legacy/RepositoryLegacyProtocolRedirectFilter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.legacy; diff --git a/scm-plugins/scm-legacy-plugin/src/main/js/DummyComponent.tsx b/scm-plugins/scm-legacy-plugin/src/main/js/DummyComponent.tsx index 28650571bf..3b3868fe67 100644 --- a/scm-plugins/scm-legacy-plugin/src/main/js/DummyComponent.tsx +++ b/scm-plugins/scm-legacy-plugin/src/main/js/DummyComponent.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-legacy-plugin/src/main/js/index.tsx b/scm-plugins/scm-legacy-plugin/src/main/js/index.tsx index 6641139685..23d17e02e9 100644 --- a/scm-plugins/scm-legacy-plugin/src/main/js/index.tsx +++ b/scm-plugins/scm-legacy-plugin/src/main/js/index.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/LegacyRealmTest.java b/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/LegacyRealmTest.java index 6662d91c84..5fdf128de3 100644 --- a/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/LegacyRealmTest.java +++ b/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/LegacyRealmTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.legacy; diff --git a/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/LegacyRepositoryServiceTest.java b/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/LegacyRepositoryServiceTest.java index dfef32de9a..5c66be1f3d 100644 --- a/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/LegacyRepositoryServiceTest.java +++ b/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/LegacyRepositoryServiceTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.legacy; diff --git a/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/RepositoryLegacyProtocolRedirectFilterTest.java b/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/RepositoryLegacyProtocolRedirectFilterTest.java index 32e957fb72..814088c398 100644 --- a/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/RepositoryLegacyProtocolRedirectFilterTest.java +++ b/scm-plugins/scm-legacy-plugin/src/test/java/sonia/scm/legacy/RepositoryLegacyProtocolRedirectFilterTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.legacy; diff --git a/scm-plugins/scm-svn-plugin/build.gradle b/scm-plugins/scm-svn-plugin/build.gradle index 9d8923cb37..321bddfcea 100644 --- a/scm-plugins/scm-svn-plugin/build.gradle +++ b/scm-plugins/scm-svn-plugin/build.gradle @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ plugins { diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigDto.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigDto.java index 2e95624d46..7029d87adf 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigDto.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigDto.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigDtoToSvnConfigMapper.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigDtoToSvnConfigMapper.java index f3c0fa35ff..6cdbea2fe5 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigDtoToSvnConfigMapper.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigDtoToSvnConfigMapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigInIndexResource.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigInIndexResource.java index 71c57c1ec2..e54756befe 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigInIndexResource.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigInIndexResource.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigResource.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigResource.java index c7458d5562..2ee6936527 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigResource.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigResource.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigToSvnConfigDtoMapper.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigToSvnConfigDtoMapper.java index da0eb2af62..7a77e1342d 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigToSvnConfigDtoMapper.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/SvnConfigToSvnConfigDtoMapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateSvnConfigDto.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateSvnConfigDto.java index bac99cef92..a526b75a23 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateSvnConfigDto.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/api/v2/resources/UpdateSvnConfigDto.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/logging/SVNKitLogger.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/logging/SVNKitLogger.java index 9138d25296..ff67dff4b3 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/logging/SVNKitLogger.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/logging/SVNKitLogger.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.logging; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/Compatibility.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/Compatibility.java index 0952ed935e..05e4d349d6 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/Compatibility.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/Compatibility.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/ConsolidatingModificationCollector.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/ConsolidatingModificationCollector.java index 769df07e06..b57b857de5 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/ConsolidatingModificationCollector.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/ConsolidatingModificationCollector.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/DBFormatHealthCheck.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/DBFormatHealthCheck.java index f8ac20664d..f26adef278 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/DBFormatHealthCheck.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/DBFormatHealthCheck.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/ScmSvnErrorCode.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/ScmSvnErrorCode.java index 8f95add0fb..3c280ef2a4 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/ScmSvnErrorCode.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/ScmSvnErrorCode.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnBlameHandler.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnBlameHandler.java index 1fcfc0fbdd..a751108a0b 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnBlameHandler.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnBlameHandler.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnConfig.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnConfig.java index 455739db6f..8c065df01e 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnConfig.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnConfig.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnConfigHelper.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnConfigHelper.java index ba4c017132..39efd971c4 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnConfigHelper.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnConfigHelper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnImportHandler.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnImportHandler.java index 8e99fb9a2e..e8b500216d 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnImportHandler.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnImportHandler.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHandler.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHandler.java index 96c19553e1..f554309101 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHandler.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHandler.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHook.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHook.java index 12029f6a1d..e1bb560347 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHook.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnRepositoryHook.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java index d69d4fda85..f151443644 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnUtil.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnV2UpdateStep.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnV2UpdateStep.java index 12f44617c6..b39553055b 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnV2UpdateStep.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnV2UpdateStep.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnWorkingCopyFactory.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnWorkingCopyFactory.java index 484ec74ab5..d175fd2a61 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnWorkingCopyFactory.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/SvnWorkingCopyFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/AbstractSvnCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/AbstractSvnCommand.java index c44c015a84..90c04b3a34 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/AbstractSvnCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/AbstractSvnCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/AbstractSvnHookChangesetProvider.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/AbstractSvnHookChangesetProvider.java index 237a5a4445..52dfcdd19d 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/AbstractSvnHookChangesetProvider.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/AbstractSvnHookChangesetProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/ChangesetCollector.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/ChangesetCollector.java index d2119bbd69..eaea71df1f 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/ChangesetCollector.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/ChangesetCollector.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SCMSvnDiffGenerator.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SCMSvnDiffGenerator.java index 7545de6d7d..d0f76ee25d 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SCMSvnDiffGenerator.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SCMSvnDiffGenerator.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SimpleSvnWorkingCopyFactory.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SimpleSvnWorkingCopyFactory.java index cc9bd6bde9..dfd723707f 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SimpleSvnWorkingCopyFactory.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SimpleSvnWorkingCopyFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBlameCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBlameCommand.java index 83792a01d9..e42f1da101 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBlameCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBlameCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java index 84709b8dc0..2b9c23d14f 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBrowseCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBundleCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBundleCommand.java index ebbda32ecd..734008d7f7 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBundleCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnBundleCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnCatCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnCatCommand.java index b875a6d18c..14842741dd 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnCatCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnCatCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnChangesetsCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnChangesetsCommand.java index 829bb588d6..55ebbfe0f1 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnChangesetsCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnChangesetsCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnContext.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnContext.java index be26374a43..04c5c292d2 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnContext.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnContext.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnDiffCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnDiffCommand.java index f0e8a02a84..98045ec4b1 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnDiffCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnDiffCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnFileLockCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnFileLockCommand.java index 1e2aa78ce9..19407812c1 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnFileLockCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnFileLockCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnFullHealthCheckCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnFullHealthCheckCommand.java index 81cb303e92..fcf28f2669 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnFullHealthCheckCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnFullHealthCheckCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnHookContextProvider.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnHookContextProvider.java index cff7d3aee2..51fa3f0909 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnHookContextProvider.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnHookContextProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java index 894ee0c6c6..1197ca9679 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLogCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLookupCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLookupCommand.java index d06dffa21b..5c45c9a8cd 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLookupCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnLookupCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnMirrorAuthenticationFactory.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnMirrorAuthenticationFactory.java index ace258be6e..f347d5c2fb 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnMirrorAuthenticationFactory.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnMirrorAuthenticationFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnMirrorCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnMirrorCommand.java index 14bd49a999..26da3f7977 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnMirrorCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnMirrorCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnModificationsCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnModificationsCommand.java index dc67137f75..e47db96d30 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnModificationsCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnModificationsCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnModifyCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnModifyCommand.java index 022b61b183..f222b293c1 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnModifyCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnModifyCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnPostReceiveHookChangesetProvier.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnPostReceiveHookChangesetProvier.java index 1089fc54ec..2fdfe840c6 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnPostReceiveHookChangesetProvier.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnPostReceiveHookChangesetProvier.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnPreReceiveHookChangesetProvier.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnPreReceiveHookChangesetProvier.java index 3a0f071330..73e291e27a 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnPreReceiveHookChangesetProvier.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnPreReceiveHookChangesetProvier.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnRepositoryServiceProvider.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnRepositoryServiceProvider.java index e6f2b53261..79a9fbf620 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnRepositoryServiceProvider.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnRepositoryServiceProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnRepositoryServiceResolver.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnRepositoryServiceResolver.java index 11ab8dc066..54217b5a85 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnRepositoryServiceResolver.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnRepositoryServiceResolver.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnUnbundleCommand.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnUnbundleCommand.java index bd2598df81..9668ce53d6 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnUnbundleCommand.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnUnbundleCommand.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnWorkingCopyInitializer.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnWorkingCopyInitializer.java index 0b2763fff2..b56737cf5f 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnWorkingCopyInitializer.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnWorkingCopyInitializer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnWorkingCopyReclaimer.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnWorkingCopyReclaimer.java index 75d0b8d3e1..b43bdb6a22 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnWorkingCopyReclaimer.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/repository/spi/SvnWorkingCopyReclaimer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnCollectionRenderer.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnCollectionRenderer.java index 755003648f..88965c8bf2 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnCollectionRenderer.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnCollectionRenderer.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVConfig.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVConfig.java index f9533fcdbe..9056d09de8 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVConfig.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVConfig.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVServlet.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVServlet.java index bee3c1234f..93d03da6af 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVServlet.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVServlet.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVServletProvider.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVServletProvider.java index 4ddf7e54e7..20d8fbb85b 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVServletProvider.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnDAVServletProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnGZipFilter.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnGZipFilter.java index 542c24f9da..9fd0b145f6 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnGZipFilter.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnGZipFilter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnGZipFilterFactory.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnGZipFilterFactory.java index 3d5a7491ef..2e1f700e30 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnGZipFilterFactory.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnGZipFilterFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnPermissionFilter.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnPermissionFilter.java index ba6e956c5a..a9328fadba 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnPermissionFilter.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnPermissionFilter.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnPermissionFilterFactory.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnPermissionFilterFactory.java index 25d04b725c..3f612b4344 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnPermissionFilterFactory.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnPermissionFilterFactory.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnScmProtocolProviderWrapper.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnScmProtocolProviderWrapper.java index 6e5594e68f..00a4ae1fb7 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnScmProtocolProviderWrapper.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnScmProtocolProviderWrapper.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnServletModule.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnServletModule.java index 13c7f1e06e..88919c0c4b 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnServletModule.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnServletModule.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnUserAgentProvider.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnUserAgentProvider.java index e6f2721cbb..609d02857e 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnUserAgentProvider.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnUserAgentProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnVndMediaType.java b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnVndMediaType.java index db2dcd6595..ec450c831f 100644 --- a/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnVndMediaType.java +++ b/scm-plugins/scm-svn-plugin/src/main/java/sonia/scm/web/SvnVndMediaType.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web; diff --git a/scm-plugins/scm-svn-plugin/src/main/js/ProtocolInformation.tsx b/scm-plugins/scm-svn-plugin/src/main/js/ProtocolInformation.tsx index 21839d3592..1e86c805c2 100644 --- a/scm-plugins/scm-svn-plugin/src/main/js/ProtocolInformation.tsx +++ b/scm-plugins/scm-svn-plugin/src/main/js/ProtocolInformation.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.tsx b/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.tsx index 54c5bb6ee5..d85b7a5b1b 100644 --- a/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.tsx +++ b/scm-plugins/scm-svn-plugin/src/main/js/SvnAvatar.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-svn-plugin/src/main/js/SvnConfigurationForm.tsx b/scm-plugins/scm-svn-plugin/src/main/js/SvnConfigurationForm.tsx index 1920ea23db..5d9d9edcda 100644 --- a/scm-plugins/scm-svn-plugin/src/main/js/SvnConfigurationForm.tsx +++ b/scm-plugins/scm-svn-plugin/src/main/js/SvnConfigurationForm.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React, { FC, useEffect, useState } from "react"; diff --git a/scm-plugins/scm-svn-plugin/src/main/js/SvnGlobalConfiguration.tsx b/scm-plugins/scm-svn-plugin/src/main/js/SvnGlobalConfiguration.tsx index 165d7ba96e..e8571f9c72 100644 --- a/scm-plugins/scm-svn-plugin/src/main/js/SvnGlobalConfiguration.tsx +++ b/scm-plugins/scm-svn-plugin/src/main/js/SvnGlobalConfiguration.tsx @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import React from "react"; diff --git a/scm-plugins/scm-svn-plugin/src/main/js/index.ts b/scm-plugins/scm-svn-plugin/src/main/js/index.ts index 61f26ae99f..00ba77a757 100644 --- a/scm-plugins/scm-svn-plugin/src/main/js/index.ts +++ b/scm-plugins/scm-svn-plugin/src/main/js/index.ts @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ import { binder, extensionPoints } from "@scm-manager/ui-extensions"; diff --git a/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/permissions.xml b/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/permissions.xml index d4b2f343d8..41368a599c 100644 --- a/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/permissions.xml +++ b/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/permissions.xml @@ -1,666 +1,18 @@ diff --git a/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/repository-permissions.xml b/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/repository-permissions.xml index 36c773d542..23e160ecad 100644 --- a/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/repository-permissions.xml +++ b/scm-plugins/scm-svn-plugin/src/main/resources/META-INF/scm/repository-permissions.xml @@ -1,665 +1,17 @@ diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigDtoToSvnConfigMapperTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigDtoToSvnConfigMapperTest.java index 5a3a83abc7..4b35937d48 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigDtoToSvnConfigMapperTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigDtoToSvnConfigMapperTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigInIndexResourceTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigInIndexResourceTest.java index 983d863e60..2c30f81c3e 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigInIndexResourceTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigInIndexResourceTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigResourceTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigResourceTest.java index c016ea21be..88fc32e50c 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigResourceTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigResourceTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigToSvnConfigDtoMapperTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigToSvnConfigDtoMapperTest.java index 3c34ebf475..3419449233 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigToSvnConfigDtoMapperTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/api/v2/resources/SvnConfigToSvnConfigDtoMapperTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.api.v2.resources; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/ConsolidatingModificationCollectorTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/ConsolidatingModificationCollectorTest.java index e72acb73a7..ec508fac7a 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/ConsolidatingModificationCollectorTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/ConsolidatingModificationCollectorTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/SvnRepositoryHandlerTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/SvnRepositoryHandlerTest.java index 624df7eb48..b4809f194c 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/SvnRepositoryHandlerTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/SvnRepositoryHandlerTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnChangeWorker.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnChangeWorker.java index 1eac3a78e9..13d81f0213 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnChangeWorker.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnChangeWorker.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnRepositoryClientFactoryProvider.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnRepositoryClientFactoryProvider.java index 321e24a9f1..39816dbb67 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnRepositoryClientFactoryProvider.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnRepositoryClientFactoryProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnRepositoryClientProvider.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnRepositoryClientProvider.java index 82690ca2bd..7089ac0649 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnRepositoryClientProvider.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/client/spi/SvnRepositoryClientProvider.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.client.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/AbstractSvnCommandTestBase.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/AbstractSvnCommandTestBase.java index d821972c61..741a667a86 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/AbstractSvnCommandTestBase.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/AbstractSvnCommandTestBase.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SimpleSvnWorkingCopyFactoryTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SimpleSvnWorkingCopyFactoryTest.java index 0af7f97849..e0c2acd106 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SimpleSvnWorkingCopyFactoryTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SimpleSvnWorkingCopyFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBlameCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBlameCommandTest.java index 7660eb6e7a..415a3d572c 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBlameCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBlameCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBrowseCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBrowseCommandTest.java index 07fc0675be..f6ea870b98 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBrowseCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBrowseCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBundleCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBundleCommandTest.java index 12a286a44d..bf86a3c254 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBundleCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnBundleCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnCatCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnCatCommandTest.java index 9a9a828637..ff7423fe65 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnCatCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnCatCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnChangesetsCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnChangesetsCommandTest.java index d57482e46a..3a8bffb672 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnChangesetsCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnChangesetsCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnDiffCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnDiffCommandTest.java index cde7d03903..fb427c3049 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnDiffCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnDiffCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnFileLockCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnFileLockCommandTest.java index ae7f65cfa3..5bb406333c 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnFileLockCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnFileLockCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnFullHealthCheckCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnFullHealthCheckCommandTest.java index ad164d031c..5e50dc7e36 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnFullHealthCheckCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnFullHealthCheckCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLogCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLogCommandTest.java index 0b8ba09ae8..613e6ce8d5 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLogCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLogCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLookupCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLookupCommandTest.java index a1201a95cb..2999cb49d3 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLookupCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnLookupCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnMirrorAuthenticationFactoryTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnMirrorAuthenticationFactoryTest.java index d867bba185..99d52e7077 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnMirrorAuthenticationFactoryTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnMirrorAuthenticationFactoryTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnMirrorCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnMirrorCommandTest.java index f7cbb3a2ac..44e8088c1f 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnMirrorCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnMirrorCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnModificationsCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnModificationsCommandTest.java index 4a9e65d6c6..1011f1fb70 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnModificationsCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnModificationsCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnModifyCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnModifyCommandTest.java index 7e375fb1bc..e560d08c23 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnModifyCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnModifyCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnUnbundleCommandTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnUnbundleCommandTest.java index 0737854c24..b7017aadb1 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnUnbundleCommandTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/repository/spi/SvnUnbundleCommandTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.repository.spi; diff --git a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/web/SvnUserAgentProviderTest.java b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/web/SvnUserAgentProviderTest.java index a332bc9b5e..0cdbaf3951 100644 --- a/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/web/SvnUserAgentProviderTest.java +++ b/scm-plugins/scm-svn-plugin/src/test/java/sonia/scm/web/SvnUserAgentProviderTest.java @@ -1,665 +1,17 @@ /* - * GNU AFFERO GENERAL PUBLIC LICENSE - * Version 3, 19 November 2007 + * Copyright (c) 2020 - present Cloudogu GmbH * - * Copyright (C) 2007 Free Software Foundation, Inc. - * Everyone is permitted to copy and distribute verbatim copies - * of this license document, but changing it is not allowed. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU Affero General Public License as published by the Free + * Software Foundation, version 3. * - * Preamble + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more + * details. * - * The GNU Affero General Public License is a free, copyleft license for - * software and other kinds of works, specifically designed to ensure - * cooperation with the community in the case of network server software. - * - * The licenses for most software and other practical works are designed - * to take away your freedom to share and change the works. By contrast, - * our General Public Licenses are intended to guarantee your freedom to - * share and change all versions of a program--to make sure it remains free - * software for all its users. - * - * When we speak of free software, we are referring to freedom, not - * price. Our General Public Licenses are designed to make sure that you - * have the freedom to distribute copies of free software (and charge for - * them if you wish), that you receive source code or can get it if you - * want it, that you can change the software or use pieces of it in new - * free programs, and that you know you can do these things. - * - * Developers that use our General Public Licenses protect your rights - * with two steps: (1) assert copyright on the software, and (2) offer - * you this License which gives you legal permission to copy, distribute - * and/or modify the software. - * - * A secondary benefit of defending all users' freedom is that - * improvements made in alternate versions of the program, if they - * receive widespread use, become available for other developers to - * incorporate. Many developers of free software are heartened and - * encouraged by the resulting cooperation. However, in the case of - * software used on network servers, this result may fail to come about. - * The GNU General Public License permits making a modified version and - * letting the public access it on a server without ever releasing its - * source code to the public. - * - * The GNU Affero General Public License is designed specifically to - * ensure that, in such cases, the modified source code becomes available - * to the community. It requires the operator of a network server to - * provide the source code of the modified version running there to the - * users of that server. Therefore, public use of a modified version, on - * a publicly accessible server, gives the public access to the source - * code of the modified version. - * - * An older license, called the Affero General Public License and - * published by Affero, was designed to accomplish similar goals. This is - * a different license, not a version of the Affero GPL, but Affero has - * released a new version of the Affero GPL which permits relicensing under - * this license. - * - * The precise terms and conditions for copying, distribution and - * modification follow. - * - * TERMS AND CONDITIONS - * - * 0. Definitions. - * - * "This License" refers to version 3 of the GNU Affero General Public License. - * - * "Copyright" also means copyright-like laws that apply to other kinds of - * works, such as semiconductor masks. - * - * "The Program" refers to any copyrightable work licensed under this - * License. Each licensee is addressed as "you". "Licensees" and - * "recipients" may be individuals or organizations. - * - * To "modify" a work means to copy from or adapt all or part of the work - * in a fashion requiring copyright permission, other than the making of an - * exact copy. The resulting work is called a "modified version" of the - * earlier work or a work "based on" the earlier work. - * - * A "covered work" means either the unmodified Program or a work based - * on the Program. - * - * To "propagate" a work means to do anything with it that, without - * permission, would make you directly or secondarily liable for - * infringement under applicable copyright law, except executing it on a - * computer or modifying a private copy. Propagation includes copying, - * distribution (with or without modification), making available to the - * public, and in some countries other activities as well. - * - * To "convey" a work means any kind of propagation that enables other - * parties to make or receive copies. Mere interaction with a user through - * a computer network, with no transfer of a copy, is not conveying. - * - * An interactive user interface displays "Appropriate Legal Notices" - * to the extent that it includes a convenient and prominently visible - * feature that (1) displays an appropriate copyright notice, and (2) - * tells the user that there is no warranty for the work (except to the - * extent that warranties are provided), that licensees may convey the - * work under this License, and how to view a copy of this License. If - * the interface presents a list of user commands or options, such as a - * menu, a prominent item in the list meets this criterion. - * - * 1. Source Code. - * - * The "source code" for a work means the preferred form of the work - * for making modifications to it. "Object code" means any non-source - * form of a work. - * - * A "Standard Interface" means an interface that either is an official - * standard defined by a recognized standards body, or, in the case of - * interfaces specified for a particular programming language, one that - * is widely used among developers working in that language. - * - * The "System Libraries" of an executable work include anything, other - * than the work as a whole, that (a) is included in the normal form of - * packaging a Major Component, but which is not part of that Major - * Component, and (b) serves only to enable use of the work with that - * Major Component, or to implement a Standard Interface for which an - * implementation is available to the public in source code form. A - * "Major Component", in this context, means a major essential component - * (kernel, window system, and so on) of the specific operating system - * (if any) on which the executable work runs, or a compiler used to - * produce the work, or an object code interpreter used to run it. - * - * The "Corresponding Source" for a work in object code form means all - * the source code needed to generate, install, and (for an executable - * work) run the object code and to modify the work, including scripts to - * control those activities. However, it does not include the work's - * System Libraries, or general-purpose tools or generally available free - * programs which are used unmodified in performing those activities but - * which are not part of the work. For example, Corresponding Source - * includes interface definition files associated with source files for - * the work, and the source code for shared libraries and dynamically - * linked subprograms that the work is specifically designed to require, - * such as by intimate data communication or control flow between those - * subprograms and other parts of the work. - * - * The Corresponding Source need not include anything that users - * can regenerate automatically from other parts of the Corresponding - * Source. - * - * The Corresponding Source for a work in source code form is that - * same work. - * - * 2. Basic Permissions. - * - * All rights granted under this License are granted for the term of - * copyright on the Program, and are irrevocable provided the stated - * conditions are met. This License explicitly affirms your unlimited - * permission to run the unmodified Program. The output from running a - * covered work is covered by this License only if the output, given its - * content, constitutes a covered work. This License acknowledges your - * rights of fair use or other equivalent, as provided by copyright law. - * - * You may make, run and propagate covered works that you do not - * convey, without conditions so long as your license otherwise remains - * in force. You may convey covered works to others for the sole purpose - * of having them make modifications exclusively for you, or provide you - * with facilities for running those works, provided that you comply with - * the terms of this License in conveying all material for which you do - * not control copyright. Those thus making or running the covered works - * for you must do so exclusively on your behalf, under your direction - * and control, on terms that prohibit them from making any copies of - * your copyrighted material outside their relationship with you. - * - * Conveying under any other circumstances is permitted solely under - * the conditions stated below. Sublicensing is not allowed; section 10 - * makes it unnecessary. - * - * 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - * - * No covered work shall be deemed part of an effective technological - * measure under any applicable law fulfilling obligations under article - * 11 of the WIPO copyright treaty adopted on 20 December 1996, or - * similar laws prohibiting or restricting circumvention of such - * measures. - * - * When you convey a covered work, you waive any legal power to forbid - * circumvention of technological measures to the extent such circumvention - * is effected by exercising rights under this License with respect to - * the covered work, and you disclaim any intention to limit operation or - * modification of the work as a means of enforcing, against the work's - * users, your or third parties' legal rights to forbid circumvention of - * technological measures. - * - * 4. Conveying Verbatim Copies. - * - * You may convey verbatim copies of the Program's source code as you - * receive it, in any medium, provided that you conspicuously and - * appropriately publish on each copy an appropriate copyright notice; - * keep intact all notices stating that this License and any - * non-permissive terms added in accord with section 7 apply to the code; - * keep intact all notices of the absence of any warranty; and give all - * recipients a copy of this License along with the Program. - * - * You may charge any price or no price for each copy that you convey, - * and you may offer support or warranty protection for a fee. - * - * 5. Conveying Modified Source Versions. - * - * You may convey a work based on the Program, or the modifications to - * produce it from the Program, in the form of source code under the - * terms of section 4, provided that you also meet all of these conditions: - * - * a) The work must carry prominent notices stating that you modified - * it, and giving a relevant date. - * - * b) The work must carry prominent notices stating that it is - * released under this License and any conditions added under section - * 7. This requirement modifies the requirement in section 4 to - * "keep intact all notices". - * - * c) You must license the entire work, as a whole, under this - * License to anyone who comes into possession of a copy. This - * License will therefore apply, along with any applicable section 7 - * additional terms, to the whole of the work, and all its parts, - * regardless of how they are packaged. This License gives no - * permission to license the work in any other way, but it does not - * invalidate such permission if you have separately received it. - * - * d) If the work has interactive user interfaces, each must display - * Appropriate Legal Notices; however, if the Program has interactive - * interfaces that do not display Appropriate Legal Notices, your - * work need not make them do so. - * - * A compilation of a covered work with other separate and independent - * works, which are not by their nature extensions of the covered work, - * and which are not combined with it such as to form a larger program, - * in or on a volume of a storage or distribution medium, is called an - * "aggregate" if the compilation and its resulting copyright are not - * used to limit the access or legal rights of the compilation's users - * beyond what the individual works permit. Inclusion of a covered work - * in an aggregate does not cause this License to apply to the other - * parts of the aggregate. - * - * 6. Conveying Non-Source Forms. - * - * You may convey a covered work in object code form under the terms - * of sections 4 and 5, provided that you also convey the - * machine-readable Corresponding Source under the terms of this License, - * in one of these ways: - * - * a) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by the - * Corresponding Source fixed on a durable physical medium - * customarily used for software interchange. - * - * b) Convey the object code in, or embodied in, a physical product - * (including a physical distribution medium), accompanied by a - * written offer, valid for at least three years and valid for as - * long as you offer spare parts or customer support for that product - * model, to give anyone who possesses the object code either (1) a - * copy of the Corresponding Source for all the software in the - * product that is covered by this License, on a durable physical - * medium customarily used for software interchange, for a price no - * more than your reasonable cost of physically performing this - * conveying of source, or (2) access to copy the - * Corresponding Source from a network server at no charge. - * - * c) Convey individual copies of the object code with a copy of the - * written offer to provide the Corresponding Source. This - * alternative is allowed only occasionally and noncommercially, and - * only if you received the object code with such an offer, in accord - * with subsection 6b. - * - * d) Convey the object code by offering access from a designated - * place (gratis or for a charge), and offer equivalent access to the - * Corresponding Source in the same way through the same place at no - * further charge. You need not require recipients to copy the - * Corresponding Source along with the object code. If the place to - * copy the object code is a network server, the Corresponding Source - * may be on a different server (operated by you or a third party) - * that supports equivalent copying facilities, provided you maintain - * clear directions next to the object code saying where to find the - * Corresponding Source. Regardless of what server hosts the - * Corresponding Source, you remain obligated to ensure that it is - * available for as long as needed to satisfy these requirements. - * - * e) Convey the object code using peer-to-peer transmission, provided - * you inform other peers where the object code and Corresponding - * Source of the work are being offered to the general public at no - * charge under subsection 6d. - * - * A separable portion of the object code, whose source code is excluded - * from the Corresponding Source as a System Library, need not be - * included in conveying the object code work. - * - * A "User Product" is either (1) a "consumer product", which means any - * tangible personal property which is normally used for personal, family, - * or household purposes, or (2) anything designed or sold for incorporation - * into a dwelling. In determining whether a product is a consumer product, - * doubtful cases shall be resolved in favor of coverage. For a particular - * product received by a particular user, "normally used" refers to a - * typical or common use of that class of product, regardless of the status - * of the particular user or of the way in which the particular user - * actually uses, or expects or is expected to use, the product. A product - * is a consumer product regardless of whether the product has substantial - * commercial, industrial or non-consumer uses, unless such uses represent - * the only significant mode of use of the product. - * - * "Installation Information" for a User Product means any methods, - * procedures, authorization keys, or other information required to install - * and execute modified versions of a covered work in that User Product from - * a modified version of its Corresponding Source. The information must - * suffice to ensure that the continued functioning of the modified object - * code is in no case prevented or interfered with solely because - * modification has been made. - * - * If you convey an object code work under this section in, or with, or - * specifically for use in, a User Product, and the conveying occurs as - * part of a transaction in which the right of possession and use of the - * User Product is transferred to the recipient in perpetuity or for a - * fixed term (regardless of how the transaction is characterized), the - * Corresponding Source conveyed under this section must be accompanied - * by the Installation Information. But this requirement does not apply - * if neither you nor any third party retains the ability to install - * modified object code on the User Product (for example, the work has - * been installed in ROM). - * - * The requirement to provide Installation Information does not include a - * requirement to continue to provide support service, warranty, or updates - * for a work that has been modified or installed by the recipient, or for - * the User Product in which it has been modified or installed. Access to a - * network may be denied when the modification itself materially and - * adversely affects the operation of the network or violates the rules and - * protocols for communication across the network. - * - * Corresponding Source conveyed, and Installation Information provided, - * in accord with this section must be in a format that is publicly - * documented (and with an implementation available to the public in - * source code form), and must require no special password or key for - * unpacking, reading or copying. - * - * 7. Additional Terms. - * - * "Additional permissions" are terms that supplement the terms of this - * License by making exceptions from one or more of its conditions. - * Additional permissions that are applicable to the entire Program shall - * be treated as though they were included in this License, to the extent - * that they are valid under applicable law. If additional permissions - * apply only to part of the Program, that part may be used separately - * under those permissions, but the entire Program remains governed by - * this License without regard to the additional permissions. - * - * When you convey a copy of a covered work, you may at your option - * remove any additional permissions from that copy, or from any part of - * it. (Additional permissions may be written to require their own - * removal in certain cases when you modify the work.) You may place - * additional permissions on material, added by you to a covered work, - * for which you have or can give appropriate copyright permission. - * - * Notwithstanding any other provision of this License, for material you - * add to a covered work, you may (if authorized by the copyright holders of - * that material) supplement the terms of this License with terms: - * - * a) Disclaiming warranty or limiting liability differently from the - * terms of sections 15 and 16 of this License; or - * - * b) Requiring preservation of specified reasonable legal notices or - * author attributions in that material or in the Appropriate Legal - * Notices displayed by works containing it; or - * - * c) Prohibiting misrepresentation of the origin of that material, or - * requiring that modified versions of such material be marked in - * reasonable ways as different from the original version; or - * - * d) Limiting the use for publicity purposes of names of licensors or - * authors of the material; or - * - * e) Declining to grant rights under trademark law for use of some - * trade names, trademarks, or service marks; or - * - * f) Requiring indemnification of licensors and authors of that - * material by anyone who conveys the material (or modified versions of - * it) with contractual assumptions of liability to the recipient, for - * any liability that these contractual assumptions directly impose on - * those licensors and authors. - * - * All other non-permissive additional terms are considered "further - * restrictions" within the meaning of section 10. If the Program as you - * received it, or any part of it, contains a notice stating that it is - * governed by this License along with a term that is a further - * restriction, you may remove that term. If a license document contains - * a further restriction but permits relicensing or conveying under this - * License, you may add to a covered work material governed by the terms - * of that license document, provided that the further restriction does - * not survive such relicensing or conveying. - * - * If you add terms to a covered work in accord with this section, you - * must place, in the relevant source files, a statement of the - * additional terms that apply to those files, or a notice indicating - * where to find the applicable terms. - * - * Additional terms, permissive or non-permissive, may be stated in the - * form of a separately written license, or stated as exceptions; - * the above requirements apply either way. - * - * 8. Termination. - * - * You may not propagate or modify a covered work except as expressly - * provided under this License. Any attempt otherwise to propagate or - * modify it is void, and will automatically terminate your rights under - * this License (including any patent licenses granted under the third - * paragraph of section 11). - * - * However, if you cease all violation of this License, then your - * license from a particular copyright holder is reinstated (a) - * provisionally, unless and until the copyright holder explicitly and - * finally terminates your license, and (b) permanently, if the copyright - * holder fails to notify you of the violation by some reasonable means - * prior to 60 days after the cessation. - * - * Moreover, your license from a particular copyright holder is - * reinstated permanently if the copyright holder notifies you of the - * violation by some reasonable means, this is the first time you have - * received notice of violation of this License (for any work) from that - * copyright holder, and you cure the violation prior to 30 days after - * your receipt of the notice. - * - * Termination of your rights under this section does not terminate the - * licenses of parties who have received copies or rights from you under - * this License. If your rights have been terminated and not permanently - * reinstated, you do not qualify to receive new licenses for the same - * material under section 10. - * - * 9. Acceptance Not Required for Having Copies. - * - * You are not required to accept this License in order to receive or - * run a copy of the Program. Ancillary propagation of a covered work - * occurring solely as a consequence of using peer-to-peer transmission - * to receive a copy likewise does not require acceptance. However, - * nothing other than this License grants you permission to propagate or - * modify any covered work. These actions infringe copyright if you do - * not accept this License. Therefore, by modifying or propagating a - * covered work, you indicate your acceptance of this License to do so. - * - * 10. Automatic Licensing of Downstream Recipients. - * - * Each time you convey a covered work, the recipient automatically - * receives a license from the original licensors, to run, modify and - * propagate that work, subject to this License. You are not responsible - * for enforcing compliance by third parties with this License. - * - * An "entity transaction" is a transaction transferring control of an - * organization, or substantially all assets of one, or subdividing an - * organization, or merging organizations. If propagation of a covered - * work results from an entity transaction, each party to that - * transaction who receives a copy of the work also receives whatever - * licenses to the work the party's predecessor in interest had or could - * give under the previous paragraph, plus a right to possession of the - * Corresponding Source of the work from the predecessor in interest, if - * the predecessor has it or can get it with reasonable efforts. - * - * You may not impose any further restrictions on the exercise of the - * rights granted or affirmed under this License. For example, you may - * not impose a license fee, royalty, or other charge for exercise of - * rights granted under this License, and you may not initiate litigation - * (including a cross-claim or counterclaim in a lawsuit) alleging that - * any patent claim is infringed by making, using, selling, offering for - * sale, or importing the Program or any portion of it. - * - * 11. Patents. - * - * A "contributor" is a copyright holder who authorizes use under this - * License of the Program or a work on which the Program is based. The - * work thus licensed is called the contributor's "contributor version". - * - * A contributor's "essential patent claims" are all patent claims - * owned or controlled by the contributor, whether already acquired or - * hereafter acquired, that would be infringed by some manner, permitted - * by this License, of making, using, or selling its contributor version, - * but do not include claims that would be infringed only as a - * consequence of further modification of the contributor version. For - * purposes of this definition, "control" includes the right to grant - * patent sublicenses in a manner consistent with the requirements of - * this License. - * - * Each contributor grants you a non-exclusive, worldwide, royalty-free - * patent license under the contributor's essential patent claims, to - * make, use, sell, offer for sale, import and otherwise run, modify and - * propagate the contents of its contributor version. - * - * In the following three paragraphs, a "patent license" is any express - * agreement or commitment, however denominated, not to enforce a patent - * (such as an express permission to practice a patent or covenant not to - * sue for patent infringement). To "grant" such a patent license to a - * party means to make such an agreement or commitment not to enforce a - * patent against the party. - * - * If you convey a covered work, knowingly relying on a patent license, - * and the Corresponding Source of the work is not available for anyone - * to copy, free of charge and under the terms of this License, through a - * publicly available network server or other readily accessible means, - * then you must either (1) cause the Corresponding Source to be so - * available, or (2) arrange to deprive yourself of the benefit of the - * patent license for this particular work, or (3) arrange, in a manner - * consistent with the requirements of this License, to extend the patent - * license to downstream recipients. "Knowingly relying" means you have - * actual knowledge that, but for the patent license, your conveying the - * covered work in a country, or your recipient's use of the covered work - * in a country, would infringe one or more identifiable patents in that - * country that you have reason to believe are valid. - * - * If, pursuant to or in connection with a single transaction or - * arrangement, you convey, or propagate by procuring conveyance of, a - * covered work, and grant a patent license to some of the parties - * receiving the covered work authorizing them to use, propagate, modify - * or convey a specific copy of the covered work, then the patent license - * you grant is automatically extended to all recipients of the covered - * work and works based on it. - * - * A patent license is "discriminatory" if it does not include within - * the scope of its coverage, prohibits the exercise of, or is - * conditioned on the non-exercise of one or more of the rights that are - * specifically granted under this License. You may not convey a covered - * work if you are a party to an arrangement with a third party that is - * in the business of distributing software, under which you make payment - * to the third party based on the extent of your activity of conveying - * the work, and under which the third party grants, to any of the - * parties who would receive the covered work from you, a discriminatory - * patent license (a) in connection with copies of the covered work - * conveyed by you (or copies made from those copies), or (b) primarily - * for and in connection with specific products or compilations that - * contain the covered work, unless you entered into that arrangement, - * or that patent license was granted, prior to 28 March 2007. - * - * Nothing in this License shall be construed as excluding or limiting - * any implied license or other defenses to infringement that may - * otherwise be available to you under applicable patent law. - * - * 12. No Surrender of Others' Freedom. - * - * If conditions are imposed on you (whether by court order, agreement or - * otherwise) that contradict the conditions of this License, they do not - * excuse you from the conditions of this License. If you cannot convey a - * covered work so as to satisfy simultaneously your obligations under this - * License and any other pertinent obligations, then as a consequence you may - * not convey it at all. For example, if you agree to terms that obligate you - * to collect a royalty for further conveying from those to whom you convey - * the Program, the only way you could satisfy both those terms and this - * License would be to refrain entirely from conveying the Program. - * - * 13. Remote Network Interaction; Use with the GNU General Public License. - * - * Notwithstanding any other provision of this License, if you modify the - * Program, your modified version must prominently offer all users - * interacting with it remotely through a computer network (if your version - * supports such interaction) an opportunity to receive the Corresponding - * Source of your version by providing access to the Corresponding Source - * from a network server at no charge, through some standard or customary - * means of facilitating copying of software. This Corresponding Source - * shall include the Corresponding Source for any work covered by version 3 - * of the GNU General Public License that is incorporated pursuant to the - * following paragraph. - * - * Notwithstanding any other provision of this License, you have - * permission to link or combine any covered work with a work licensed - * under version 3 of the GNU General Public License into a single - * combined work, and to convey the resulting work. The terms of this - * License will continue to apply to the part which is the covered work, - * but the work with which it is combined will remain governed by version - * 3 of the GNU General Public License. - * - * 14. Revised Versions of this License. - * - * The Free Software Foundation may publish revised and/or new versions of - * the GNU Affero General Public License from time to time. Such new versions - * will be similar in spirit to the present version, but may differ in detail to - * address new problems or concerns. - * - * Each version is given a distinguishing version number. If the - * Program specifies that a certain numbered version of the GNU Affero General - * Public License "or any later version" applies to it, you have the - * option of following the terms and conditions either of that numbered - * version or of any later version published by the Free Software - * Foundation. If the Program does not specify a version number of the - * GNU Affero General Public License, you may choose any version ever published - * by the Free Software Foundation. - * - * If the Program specifies that a proxy can decide which future - * versions of the GNU Affero General Public License can be used, that proxy's - * public statement of acceptance of a version permanently authorizes you - * to choose that version for the Program. - * - * Later license versions may give you additional or different - * permissions. However, no additional obligations are imposed on any - * author or copyright holder as a result of your choosing to follow a - * later version. - * - * 15. Disclaimer of Warranty. - * - * THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY - * APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT - * HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY - * OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, - * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM - * IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF - * ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - * - * 16. Limitation of Liability. - * - * IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING - * WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS - * THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY - * GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE - * USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF - * DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD - * PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), - * EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGES. - * - * 17. Interpretation of Sections 15 and 16. - * - * If the disclaimer of warranty and limitation of liability provided - * above cannot be given local legal effect according to their terms, - * reviewing courts shall apply local law that most closely approximates - * an absolute waiver of all civil liability in connection with the - * Program, unless a warranty or assumption of liability accompanies a - * copy of the Program in return for a fee. - * - * END OF TERMS AND CONDITIONS - * - * How to Apply These Terms to Your New Programs - * - * If you develop a new program, and you want it to be of the greatest - * possible use to the public, the best way to achieve this is to make it - * free software which everyone can redistribute and change under these terms. - * - * To do so, attach the following notices to the program. It is safest - * to attach them to the start of each source file to most effectively - * state the exclusion of warranty; and each file should have at least - * the "copyright" line and a pointer to where the full notice is found. - * - * - * Copyright (C) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published - * by the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - * Also add information on how to contact you by electronic and paper mail. - * - * If your software can interact with users remotely through a computer - * network, you should also make sure that it provides a way for users to - * get its source. For example, if your program is a web application, its - * interface could display a "Source" link that leads users to an archive - * of the code. There are many ways you could offer source, and different - * solutions will be better for different programs; see section 13 for the - * specific requirements. - * - * You should also get your employer (if you work as a programmer) or school, - * if any, to sign a "copyright disclaimer" for the program, if necessary. - * For more information on this, and how to apply and follow the GNU AGPL, see - * . + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. */ package sonia.scm.web;